Skip to content

Commit

Permalink
close rcmgr scope for transportConn
Browse files Browse the repository at this point in the history
  • Loading branch information
sukunrt committed Nov 21, 2024
1 parent 1ad628f commit 0e1eb18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/net/upgrader/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0e1eb18

Please sign in to comment.