diff options
Diffstat (limited to 'src/receive.go')
-rw-r--r-- | src/receive.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/receive.go b/src/receive.go index 0b0efbf..7d493b0 100644 --- a/src/receive.go +++ b/src/receive.go @@ -482,7 +482,8 @@ func (peer *Peer) RoutineSequentialReceiver() { for { select { - case <-peer.signal.stop: + + case <-peer.signal.stop.Wait(): logDebug.Println("Routine, sequential receiver, stopped for peer", peer.id) return |