check session == nil

This commit is contained in:
Cloud Wu
2023-09-28 14:40:02 +08:00
parent 172278bc8f
commit f3f7e725e8

View File

@@ -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