From 0e1eb185ddb47515d1bf951ad0e94791d6c0f38a Mon Sep 17 00:00:00 2001 From: sukun Date: Thu, 21 Nov 2024 19:24:01 +0530 Subject: [PATCH] close rcmgr scope for transportConn --- p2p/net/upgrader/conn.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/net/upgrader/conn.go b/p2p/net/upgrader/conn.go index 18e1e6a931..cdeab3b07d 100644 --- a/p2p/net/upgrader/conn.go +++ b/p2p/net/upgrader/conn.go @@ -65,6 +65,7 @@ func (t *transportConn) ConnState() network.ConnectionState { } func (t *transportConn) CloseWithError(errCode network.ConnErrorCode) error { + defer t.scope.Done() if ce, ok := t.MuxedConn.(network.CloseWithErrorer); ok { return ce.CloseWithError(errCode) }