summaryrefslogtreecommitdiffstats
path: root/device/receive.go
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josh@tailscale.com>2021-02-02 16:14:54 -0800
committerJosh Bleecher Snyder <josh@tailscale.com>2021-02-08 08:18:32 -0800
commit9c75f58f3d8656e9e5394959a67b630f51f9dc98 (patch)
tree31708498db3e91310da55f85e3359eefc043a148 /device/receive.go
parentdevice: remove device.state.stopping from RoutineDecryption (diff)
downloadwireguard-go-9c75f58f3d8656e9e5394959a67b630f51f9dc98.tar.xz
wireguard-go-9c75f58f3d8656e9e5394959a67b630f51f9dc98.zip
device: remove device.state.stopping from RoutineHandshake
It is no longer necessary. Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device/receive.go')
-rw-r--r--device/receive.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/device/receive.go b/device/receive.go
index 3b0f36c..21d9dbc 100644
--- a/device/receive.go
+++ b/device/receive.go
@@ -240,10 +240,7 @@ func (device *Device) RoutineDecryption() {
/* Handles incoming packets related to handshake
*/
func (device *Device) RoutineHandshake() {
- defer func() {
- device.log.Verbosef("Routine: handshake worker - stopped")
- device.state.stopping.Done()
- }()
+ defer device.log.Verbosef("Routine: handshake worker - stopped")
device.log.Verbosef("Routine: handshake worker - started")
for elem := range device.queue.handshake.c {