8000 Clean up packet queue in udpMuxedConn Close · pion/ice@1d06841 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 1d06841

Browse files
committed
Clean up packet queue in udpMuxedConn Close
1 parent ed41bbf commit 1d06841

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

udp_muxed_conn.go

+2
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ func (c *udpMuxedConn) Close() error {
144144

145145
pkt = next
146146
}
147+
c.bufHead = nil
148+
c.bufTail = nil
147149

148150
c.state = udpMuxedConnClosed
149151
close(c.closedChan)

0 commit comments

Comments
 (0)
0