mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
check session == nil
This commit is contained in:
@@ -98,6 +98,9 @@ do ---- avoid session rewind conflict
|
|||||||
|
|
||||||
-- in dangerzone, we should check if the next session already exist.
|
-- in dangerzone, we should check if the next session already exist.
|
||||||
local function checkconflict(session)
|
local function checkconflict(session)
|
||||||
|
if session == nil then
|
||||||
|
return
|
||||||
|
end
|
||||||
local next_session = session + 1
|
local next_session = session + 1
|
||||||
if next_session > dangerzone_up then
|
if next_session > dangerzone_up then
|
||||||
-- leave dangerzone
|
-- leave dangerzone
|
||||||
|
|||||||
Reference in New Issue
Block a user