summaryrefslogtreecommitdiffhomepage
path: root/device/send.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josh@tailscale.com>2021-02-02 10:46:34 -0800
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-03 00:57:57 +0100
commit8a374a35a0fe62dfd86df2c16166d2bb84115b93 (patch)
treed712eee9dbb5772f9dd922a15b168a50ba74169d /device/send.go
parent48460703229d73fbacdd0d6b0d0f01a54f7ce751 (diff)
device: tie encryption queue lifetime to the peers that write to it
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device/send.go')
-rw-r--r--device/send.go2
1 files changed, 0 insertions, 2 deletions
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