diff options
Diffstat (limited to 'server/src/async')
-rw-r--r-- | server/src/async/async.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/async/async.lua b/server/src/async/async.lua index b381ae11..953cf5cf 100644 --- a/server/src/async/async.lua +++ b/server/src/async/async.lua @@ -78,7 +78,7 @@ local function callback(id, running) end -- TODO 封装成对象 local suc, destroy = xpcall(running.callback, log.error, result) - if suc and destroy then + if not suc or destroy then RunningList[id] = nil IdlePool[#IdlePool+1] = running.task break |