Skip to content

Commit ffed95f

Browse files
committed
close rcmgr scope for transportConn
1 parent f06e9cc commit ffed95f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

p2p/net/upgrader/conn.go

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func (t *transportConn) ConnState() network.ConnectionState {
6565
}
6666

6767
func (t *transportConn) CloseWithError(errCode network.ConnErrorCode) error {
68+
defer t.scope.Done()
6869
if ce, ok := t.MuxedConn.(network.CloseWithErrorer); ok {
6970
return ce.CloseWithError(errCode)
7071
}

0 commit comments

Comments
 (0)