summaryrefslogtreecommitdiff
path: root/receive.go
diff options
context:
space:
mode:
Diffstat (limited to 'receive.go')
-rw-r--r--receive.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/receive.go b/receive.go
index 1d8b718..dc6488f 100644
--- a/receive.go
+++ b/receive.go
@@ -245,9 +245,10 @@ func (device *Device) RoutineDecryption() {
elem.Drop()
}
default:
- break
+ goto out
}
}
+ out:
logDebug.Println("Routine: decryption worker - stopped")
}()
logDebug.Println("Routine: decryption worker - started")
@@ -317,9 +318,10 @@ func (device *Device) RoutineHandshake() {
select {
case <-device.queue.handshake:
default:
- return
+ goto out
}
}
+ out:
logDebug.Println("Routine: handshake worker - stopped")
}()