mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
bugfix: return nil when launch service failed
This commit is contained in:
@@ -306,7 +306,7 @@ function skynet.uniqueservice(global, ...)
|
|||||||
else
|
else
|
||||||
handle = skynet.call(".service", "lua", global, ...)
|
handle = skynet.call(".service", "lua", global, ...)
|
||||||
end
|
end
|
||||||
if handle then
|
if handle ~= false then
|
||||||
return handle
|
return handle
|
||||||
end
|
end
|
||||||
skynet.sleep(t)
|
skynet.sleep(t)
|
||||||
|
|||||||
Reference in New Issue
Block a user