From 1dd590b91b893a413666b6daaed848d89bab7f05 Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Sat, 13 Jan 2018 09:00:37 +0100 Subject: Work on timer teardown + bug fixes Added waitgroups to peer struct for routine start / stop synchronisation --- src/receive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/receive.go') 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 -- cgit v1.2.3