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 authored Jun 9, 2023
1 parent c9de166 commit 3d725f3
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 3d725f3

Please sign in to comment.