mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
skynet.exit (#1324)
This commit is contained in:
@@ -531,7 +531,7 @@ function skynet.exit()
|
||||
end
|
||||
end
|
||||
for session, co in pairs(session_id_coroutine) do
|
||||
if type(co) == "thread" then
|
||||
if type(co) == "thread" and co ~= running_thread then
|
||||
coroutine.close(co)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user