mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2025-08-22 23:06:22 +02:00
Fixup buffer freeing
This commit is contained in:
4
send.go
4
send.go
@@ -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 {
|
||||
|
Reference in New Issue
Block a user