summaryrefslogtreecommitdiff
path: root/device/receive.go
diff options
context:
space:
mode:
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 {