bugfix: return nil when launch service failed

This commit is contained in:
云风
2012-10-12 15:44:49 +08:00
parent aaf84ccb6f
commit 115d9d9e2d

View File

@@ -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)