Skip to content

Commit

Permalink
Clean up packet queue in udpMuxedConn Close
Browse files Browse the repository at this point in the history
  • Loading branch information
paulwe committed May 1, 2024
1 parent 60ca972 commit ea1501b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions udp_muxed_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ func (c *udpMuxedConn) Close() error {

pkt = next
}
c.bufHead = nil
c.bufTail = nil

c.state = udpMuxedConnClosed
close(c.closedChan)
Expand Down

0 comments on commit ea1501b

Please sign in to comment.