bugfix: skynet.localname return nil not 0

This commit is contained in:
Cloud Wu
2014-07-13 19:44:59 +08:00
parent 3bc7304609
commit 68ddeab8fa

View File

@@ -176,7 +176,7 @@ skynet.start(function()
end
end)
local handle = skynet.localname ".service"
if handle ~= 0 then
if handle then
skynet.error(".service is already register by ", skynet.address(handle))
skynet.exit()
else