Skip to content

Commit

Permalink
transport/webtransport: close the challenge stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo committed May 20, 2023
1 parent 5a0411b commit 8ec0e52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions p2p/transport/webtransport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,9 @@ func (t *transport) upgrade(ctx context.Context, sess *webtransport.Session, p p
if err != nil {
return nil, err
}
if err = c.Close(); err != nil {
return nil, err
}
// The Noise handshake _should_ guarantee that our verification callback is called.
// Double-check just in case.
if !verified {
Expand Down

0 comments on commit 8ec0e52

Please sign in to comment.