From 8a374a35a0fe62dfd86df2c16166d2bb84115b93 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Tue, 2 Feb 2021 10:46:34 -0800 Subject: device: tie encryption queue lifetime to the peers that write to it Signed-off-by: Josh Bleecher Snyder --- device/send.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'device/send.go') diff --git a/device/send.go b/device/send.go index 9d63c4e..8def4ce 100644 --- a/device/send.go +++ b/device/send.go @@ -291,8 +291,6 @@ func (peer *Peer) StagePacket(elem *QueueOutboundElement) { } func (peer *Peer) SendStagedPackets() { - peer.device.queue.encryption.wg.Add(1) - defer peer.device.queue.encryption.wg.Done() top: if len(peer.queue.staged) == 0 || !peer.device.isUp.Get() { return -- cgit v1.2.3