mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
Merge branch 'dev' into sconn
This commit is contained in:
@@ -10,5 +10,9 @@ function datacenter.set(...)
|
||||
return skynet.call("DATACENTER", "lua", "UPDATE", ...)
|
||||
end
|
||||
|
||||
function datacenter.wait(...)
|
||||
return skynet.call("DATACENTER", "lua", "WAIT", ...)
|
||||
end
|
||||
|
||||
return datacenter
|
||||
|
||||
|
||||
@@ -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