diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-17 00:43:23 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-22 05:43:03 +0200 |
commit | cf81a28dd30bd8714432d2ff108d64c7f4b65e50 (patch) | |
tree | f2b2c502c22ad6b3d006c289f28fd897f4c703a5 /send.go | |
parent | 942abf948a9121a4595f782093ca623534997776 (diff) |
Fixup buffer freeing
Diffstat (limited to 'send.go')
-rw-r--r-- | send.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -74,8 +74,7 @@ func addToNonceQueue(queue chan *QueueOutboundElement, element *QueueOutboundEle default: select { case old := <-queue: - old.Drop() - device.PutMessageBuffer(element.buffer) + device.PutMessageBuffer(old.buffer) default: } } @@ -98,7 +97,6 @@ func addToOutboundAndEncryptionQueues(outboundQueue chan *QueueOutboundElement, } } - /* Queues a keepalive if no packets are queued for peer */ func (peer *Peer) SendKeepalive() bool { |