Skip to content

Commit

Permalink
Merge 9b6e880 into b1d39bb
Browse files Browse the repository at this point in the history
  • Loading branch information
oiooj committed Feb 23, 2018
2 parents b1d39bb + 9b6e880 commit 67c9b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/discovery/peerlistmgr/peer_list_mgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func New(
}
mgr.updatePeers(instances)

mgr.exitWG.Add(2)
go mgr.processDiscoveryNotifications()
go mgr.maintainConnections()

Expand All @@ -76,7 +77,6 @@ func New(
// Stop shuts down the manager. It blocks until both bg go-routines exit.
func (m *PeerListManager) Stop() {
m.notifier.Unregister(m.discoCh)
m.exitWG.Add(2)
close(m.discoCh)
close(m.stopCh)
m.exitWG.Wait()
Expand Down

0 comments on commit 67c9b07

Please sign in to comment.