return nil to caller of newservice, while calling skynet.exit in start function

This commit is contained in:
Cloud Wu
2015-02-05 18:16:26 +08:00
parent 05ae055097
commit 7c7d63ea70

View File

@@ -58,7 +58,7 @@ function command.REMOVE(_, handle)
local response = instance[handle]
if response then
-- instance is dead
response(false)
response(true) -- return nil to caller of newservice
instance[handle] = nil
end