mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
bugfix: redirect should pass session (0)
This commit is contained in:
@@ -12,7 +12,7 @@ skynet.register_protocol {
|
|||||||
local w = service_map[address]
|
local w = service_map[address]
|
||||||
if w then
|
if w then
|
||||||
for watcher in pairs(w) do
|
for watcher in pairs(w) do
|
||||||
skynet.redirect(watcher, address, "error", "")
|
skynet.redirect(watcher, address, "error", 0, "")
|
||||||
end
|
end
|
||||||
service_map[address] = false
|
service_map[address] = false
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -569,6 +569,7 @@ function skynet.monitor(service, query)
|
|||||||
end
|
end
|
||||||
assert(monitor, "Monitor launch failed")
|
assert(monitor, "Monitor launch failed")
|
||||||
c.command("MONITOR", string.format(":%08x", monitor))
|
c.command("MONITOR", string.format(":%08x", monitor))
|
||||||
|
return monitor
|
||||||
end
|
end
|
||||||
|
|
||||||
function skynet.mqlen()
|
function skynet.mqlen()
|
||||||
|
|||||||
Reference in New Issue
Block a user