Skip to content

Commit

Permalink
release session mutex when an error occurs when closing (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo authored Nov 29, 2022
1 parent f4faeae commit b6fc356
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ func (s *Session) CloseWithError(code SessionErrorCode, msg string) error {
closeWebtransportSessionCapsuleType,
b,
); err != nil {
s.closeMx.Unlock()
return err
}

Expand Down

0 comments on commit b6fc356

Please sign in to comment.