mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
bugfix: skynet.exit redirect error, and add datacenter.wait
This commit is contained in:
@@ -257,7 +257,7 @@ function skynet.exit()
|
||||
local address = session_coroutine_address[co]
|
||||
local self = skynet.self()
|
||||
if session~=0 and address then
|
||||
skynet.redirect(self, address, "error", session, "")
|
||||
skynet.redirect(address, self, "error", session, "")
|
||||
end
|
||||
end
|
||||
c.command("EXIT")
|
||||
|
||||
Reference in New Issue
Block a user