diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-30 23:22:40 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-30 23:22:40 +0100 |
commit | 02ce67294cd28bde9d61924fe6d0365638cc924e (patch) | |
tree | a30445a4e15e6ab651525e9dd40ba6399e00d1d8 /src/receive.go | |
parent | 479a6f240e37aacc449e3718d3853fa04c598ef4 (diff) |
Refactor timers.go
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 |