Skip to content

Commit

Permalink
disco/udp: do not panic
Browse files Browse the repository at this point in the history
  • Loading branch information
rkonfj committed Nov 14, 2024
1 parent e3a35c0 commit 835f63b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions disco/udp/stun.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func (c *stunRoundTripper) recvResponse(b []byte, peerAddr net.Addr) {
return
}
resp := stunResponse{txid: string(txid[:]), addr: addr}
defer func() { recover() }()
select {
case r <- resp:
default:
Expand Down

0 comments on commit 835f63b

Please sign in to comment.