From f3f7e725e8cccd6f869402b8820ad88ef4329af1 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Thu, 28 Sep 2023 14:40:02 +0800 Subject: [PATCH] check session == nil --- lualib/skynet.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lualib/skynet.lua b/lualib/skynet.lua index 1585c391..9cb7c748 100644 --- a/lualib/skynet.lua +++ b/lualib/skynet.lua @@ -98,6 +98,9 @@ do ---- avoid session rewind conflict -- in dangerzone, we should check if the next session already exist. local function checkconflict(session) + if session == nil then + return + end local next_session = session + 1 if next_session > dangerzone_up then -- leave dangerzone