summaryrefslogtreecommitdiffhomepage
path: root/peer.go
diff options
context:
space:
mode:
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/peer.go b/peer.go
index 8acdfbc..f10bfbb 100644
--- a/peer.go
+++ b/peer.go
@@ -246,8 +246,8 @@ func (peer *Peer) Stop() {
// stop & wait for ongoing peer routines
- peer.routines.stop.Broadcast()
peer.routines.starting.Wait()
+ peer.routines.stop.Broadcast()
peer.routines.stopping.Wait()
// stop timers