change name from exit to error

This commit is contained in:
云风
2013-12-10 14:59:03 +08:00
parent 294f6feb50
commit 4a49346da8
3 changed files with 10 additions and 10 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.send(watcher, "exit", address)
skynet.send(watcher, "error", address)
end
service_map[address] = false
end