mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
return nil to caller of newservice, while calling skynet.exit in start function
This commit is contained in:
@@ -58,7 +58,7 @@ function command.REMOVE(_, handle)
|
|||||||
local response = instance[handle]
|
local response = instance[handle]
|
||||||
if response then
|
if response then
|
||||||
-- instance is dead
|
-- instance is dead
|
||||||
response(false)
|
response(true) -- return nil to caller of newservice
|
||||||
instance[handle] = nil
|
instance[handle] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user