mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53: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")
|
||||
if node_address[name] ~= address then
|
||||
-- address changed
|
||||
if rawget(node_channel, name) then
|
||||
node_channel[name] = nil -- reset connection
|
||||
if node_sender[name] then
|
||||
-- reset connection if node_sender[name] exist
|
||||
node_channel[name] = nil
|
||||
table.insert(reload, name)
|
||||
end
|
||||
node_address[name] = address
|
||||
|
||||
Reference in New Issue
Block a user