mirror of https://github.com/vacp2p/nim-libp2p.git
fix crash at TRACE log level
This commit is contained in:
parent
7c1aac5dc1
commit
6ffd5be059
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue