skynet.exit (#1324)

This commit is contained in:
hong
2021-01-14 11:03:32 +08:00
committed by GitHub
parent 4cb84ac881
commit cfb638243f

View File

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