summaryrefslogtreecommitdiffhomepage
path: root/device/receive.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/receive.go')
-rw-r--r--device/receive.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/device/receive.go b/device/receive.go
index 0b70137..3b0f36c 100644
--- a/device/receive.go
+++ b/device/receive.go
@@ -210,10 +210,8 @@ func (device *Device) RoutineReceiveIncoming(IP int, bind conn.Bind) {
func (device *Device) RoutineDecryption() {
var nonce [chacha20poly1305.NonceSize]byte
- defer func() {
- device.log.Verbosef("Routine: decryption worker - stopped")
- device.state.stopping.Done()
- }()
+
+ defer device.log.Verbosef("Routine: decryption worker - stopped")
device.log.Verbosef("Routine: decryption worker - started")
for elem := range device.queue.decryption.c {