From 7d29213b982630e25ce327d2945522066ca57272 Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Thu, 8 Jun 2023 22:54:48 -0700 Subject: [PATCH] Clear stream scope if we error (#2345) --- p2p/net/swarm/swarm_conn.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/net/swarm/swarm_conn.go b/p2p/net/swarm/swarm_conn.go index 0e79da1b62..e770381a2e 100644 --- a/p2p/net/swarm/swarm_conn.go +++ b/p2p/net/swarm/swarm_conn.go @@ -130,6 +130,7 @@ func (c *Conn) start() { // We only get an error here when the swarm is closed or closing. if err != nil { + scope.Done() return }