bugfix: redirect should pass session (0)

This commit is contained in:
Cloud Wu
2014-07-03 17:13:47 +08:00
parent 1e0189962b
commit 711c04e6a9
2 changed files with 2 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ skynet.register_protocol {
local w = service_map[address]
if w then
for watcher in pairs(w) do
skynet.redirect(watcher, address, "error", "")
skynet.redirect(watcher, address, "error", 0, "")
end
service_map[address] = false
end

View File

@@ -569,6 +569,7 @@ function skynet.monitor(service, query)
end
assert(monitor, "Monitor launch failed")
c.command("MONITOR", string.format(":%08x", monitor))
return monitor
end
function skynet.mqlen()