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
handle = skynet.call(".service", "lua", global, ...)
end
if handle then
if handle ~= false then
return handle
end
skynet.sleep(t)