Check address changes before raise error, fix #1273

This commit is contained in:
Cloud Wu
2020-12-11 12:02:32 +08:00
parent 4faa6499e8
commit e8a48483ab

View File

@@ -60,10 +60,10 @@ local function open_channel(t, key)
for _, co in ipairs(ct) do
skynet.wakeup(co)
end
assert(succ, err)
if node_address[key] ~= address then
return open_channel(t,key)
end
assert(succ, err)
return c
end