8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08de04f commit a741a7fCopy full SHA for a741a7f
packet-manager.go
@@ -176,8 +176,10 @@ func (s *packetManager) maybeSendPackets() {
176
s.sender.sendPacket(out.(encoding.BinaryMarshaler))
177
// pop off heads
178
copy(s.incoming, s.incoming[1:]) // shift left
179
+ s.incoming[len(s.incoming)-1] = nil // clear last
180
s.incoming = s.incoming[:len(s.incoming)-1] // remove last
181
copy(s.outgoing, s.outgoing[1:]) // shift left
182
+ s.outgoing[len(s.outgoing)-1] = nil // clear last
183
s.outgoing = s.outgoing[:len(s.outgoing)-1] // remove last
184
} else {
185
break
0 commit comments