mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
reset connection if node_sender exist, see issue #1273
This commit is contained in:
@@ -89,8 +89,9 @@ local function loadconfig(tmp)
|
|||||||
assert(address == false or type(address) == "string")
|
assert(address == false or type(address) == "string")
|
||||||
if node_address[name] ~= address then
|
if node_address[name] ~= address then
|
||||||
-- address changed
|
-- address changed
|
||||||
if rawget(node_channel, name) then
|
if node_sender[name] then
|
||||||
node_channel[name] = nil -- reset connection
|
-- reset connection if node_sender[name] exist
|
||||||
|
node_channel[name] = nil
|
||||||
table.insert(reload, name)
|
table.insert(reload, name)
|
||||||
end
|
end
|
||||||
node_address[name] = address
|
node_address[name] = address
|
||||||
|
|||||||
Reference in New Issue
Block a user