GND the buffers(to recycle the buffers)

This commit is contained in:
xtaci
2019-11-04 04:30:41 +00:00
parent 9313fe25dd
commit 6e70521d78
+1 -1
View File
@@ -333,7 +333,7 @@ func (s *UDPSession) WriteBuffers(v [][]byte) (n int, err error) {
func (s *UDPSession) uncork() {
if len(s.txqueue) > 0 {
s.tx(s.txqueue)
s.txqueue = s.txqueue[:0]
s.txqueue = nil
}
return
}