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 ed41bbf commit 1d06841
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 @@ -144,6 +144,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 1d06841

Please sign in to comment.