mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
bugfix: skynet.localname return nil not 0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user