mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
don't report error when session == 0
This commit is contained in:
@@ -455,7 +455,10 @@ function skynet.killthread(thread)
|
||||
if addr then
|
||||
session_coroutine_address[co] = nil
|
||||
session_coroutine_tracetag[co] = nil
|
||||
c.send(addr, skynet.PTYPE_ERROR, session_coroutine_id[co], "")
|
||||
local session = session_coroutine_id[co]
|
||||
if session > 0 then
|
||||
c.send(addr, skynet.PTYPE_ERROR, session, "")
|
||||
end
|
||||
session_coroutine_id[co] = nil
|
||||
end
|
||||
if watching_session[session] then
|
||||
|
||||
Reference in New Issue
Block a user