mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-06-05 04:43:44 +02:00
device: put handshake buffer in pool in FlushPacketQueues
This appears to have been an oversight. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
parent
48c3b87eb8
commit
0cc15e7c7c
1 changed files with 2 additions and 1 deletions
|
@ -387,7 +387,8 @@ func (device *Device) RemoveAllPeers() {
|
||||||
func (device *Device) FlushPacketQueues() {
|
func (device *Device) FlushPacketQueues() {
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-device.queue.handshake:
|
case elem := <-device.queue.handshake:
|
||||||
|
device.PutMessageBuffer(elem.buffer)
|
||||||
default:
|
default:
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue