From 6ffd5be0598d8c1043c456a2b87bfdb753906c2e Mon Sep 17 00:00:00 2001 From: Giovanni Petrantoni Date: Sat, 8 Aug 2020 16:31:37 +0900 Subject: [PATCH] fix crash at TRACE log level --- libp2p/switch.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libp2p/switch.nim b/libp2p/switch.nim index 2b3411c07..23648c2ae 100644 --- a/libp2p/switch.nim +++ b/libp2p/switch.nim @@ -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():