From 0cc15e7c7c6fc2917cb1cea8ea3f10f7d375cac4 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Tue, 12 Jan 2021 15:04:32 -0800 Subject: device: put handshake buffer in pool in FlushPacketQueues This appears to have been an oversight. Signed-off-by: Josh Bleecher Snyder --- device/device.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/device/device.go b/device/device.go index 9a9b1b3..d18192e 100644 --- a/device/device.go +++ b/device/device.go @@ -387,7 +387,8 @@ func (device *Device) RemoveAllPeers() { func (device *Device) FlushPacketQueues() { for { select { - case <-device.queue.handshake: + case elem := <-device.queue.handshake: + device.PutMessageBuffer(elem.buffer) default: return } -- cgit v1.2.3