mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-12 03:54:06 +00:00
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…
x
Reference in New Issue
Block a user