fix crash at TRACE log level

This commit is contained in:
Giovanni Petrantoni 2020-08-08 16:31:37 +09:00
parent 7c1aac5dc1
commit 6ffd5be059
1 changed files with 1 additions and 2 deletions

View File

@ -355,11 +355,10 @@ proc internalConnect(s: Switch,
doAssert not isNil(upgraded), "checked in upgradeOutgoing" doAssert not isNil(upgraded), "checked in upgradeOutgoing"
s.connManager.storeOutgoing(upgraded) s.connManager.storeOutgoing(upgraded)
conn = upgraded
trace "dial successful", trace "dial successful",
oid = $conn.oid, oid = $conn.oid,
peerInfo = shortLog(upgraded.peerInfo) peerInfo = shortLog(upgraded.peerInfo)
conn = upgraded
break break
finally: finally:
if lock.locked(): if lock.locked():