diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2018-01-13 09:00:37 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2018-01-13 09:00:37 +0100 |
commit | 1dd590b91b893a413666b6daaed848d89bab7f05 (patch) | |
tree | 702ff9185afe072565a17fb089cf6014f4cbccfc /src/receive.go | |
parent | d73f960aab86b9a12b0b7d18aa80ce1d4f130695 (diff) |
Work on timer teardown + bug fixes
Added waitgroups to peer struct for routine
start / stop synchronisation
Diffstat (limited to 'src/receive.go')
-rw-r--r-- | src/receive.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/receive.go b/src/receive.go index dbd2813..e6e8481 100644 --- a/src/receive.go +++ b/src/receive.go @@ -497,7 +497,7 @@ func (peer *Peer) RoutineSequentialReceiver() { select { - case <-peer.signal.stop.Wait(): + case <-peer.routines.stop.Wait(): logDebug.Println("Routine, sequential receiver, stopped for peer", peer.id) return |