Skip to content

Commit

Permalink
Clear stream scope if we error (#2345)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Jun 12, 2023
1 parent 6dffa1a commit 7d29213
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/net/swarm/swarm_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7d29213

Please sign in to comment.