diff --git a/udp_muxed_conn.go b/udp_muxed_conn.go index 4e6588d0..9f438b3e 100644 --- a/udp_muxed_conn.go +++ b/udp_muxed_conn.go @@ -144,6 +144,8 @@ func (c *udpMuxedConn) Close() error { pkt = next } + c.bufHead = nil + c.bufTail = nil c.state = udpMuxedConnClosed close(c.closedChan)