reset connection if node_sender exist, see issue #1273

This commit is contained in:
Cloud Wu
2020-12-12 14:44:28 +08:00
parent e8a48483ab
commit 8eac155b1b

View File

@@ -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