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"
|
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():
|
||||||
|
|
Loading…
Reference in New Issue