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"
s.connManager.storeOutgoing(upgraded)
conn = upgraded
trace "dial successful",
oid = $conn.oid,
peerInfo = shortLog(upgraded.peerInfo)
conn = upgraded
break
finally:
if lock.locked():