diff options
Diffstat (limited to 'device/receive.go')
-rw-r--r-- | device/receive.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/device/receive.go b/device/receive.go index 3fc6831..6b9cccd 100644 --- a/device/receive.go +++ b/device/receive.go @@ -237,7 +237,10 @@ func (device *Device) RoutineDecryption() { /* Handles incoming packets related to handshake */ func (device *Device) RoutineHandshake() { - defer device.log.Verbosef("Routine: handshake worker - stopped") + defer func() { + device.log.Verbosef("Routine: handshake worker - stopped") + device.queue.encryption.wg.Done() + }() device.log.Verbosef("Routine: handshake worker - started") for elem := range device.queue.handshake.c { |