mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
See Issue #284
This commit is contained in:
@@ -44,7 +44,7 @@ return function(skynet, source, filename , ...)
|
||||
if proto then
|
||||
for k,v in pairs(proto) do
|
||||
local name, dispatch = v.name, v.dispatch
|
||||
if name and dispatch then
|
||||
if name and dispatch and not p[name] then
|
||||
local pp = {}
|
||||
p[name] = pp
|
||||
getupvaluetable(pp, dispatch, unique)
|
||||
|
||||
@@ -171,7 +171,7 @@ end
|
||||
|
||||
local function adjust_address(address)
|
||||
if address:sub(1,1) ~= ":" then
|
||||
address = tonumber("0x" .. address) | (skynet.harbor(skynet.self()) << 24)
|
||||
address = assert(tonumber("0x" .. address), "Need an address") | (skynet.harbor(skynet.self()) << 24)
|
||||
end
|
||||
return address
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user