Add Patch For Libp2p (#12507)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
Nishant Das
2023-06-11 09:59:18 +08:00
committed by GitHub
parent 6896b41963
commit 0f228896b0
2 changed files with 13 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
diff --git a/p2p/net/swarm/swarm_conn.go b/p2p/net/swarm/swarm_conn.go
index 0e79da1b..e770381a 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
}