Skip to content

Commit

Permalink
Can only deactivate an active PeerFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveCTurner committed Aug 6, 2018
1 parent 253a994 commit 7948268
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public void activate(final DiscoveryNodes lastAcceptedNodes) {

public void deactivate(DiscoveryNode leader) {
synchronized (mutex) {
assert active;
logger.trace("deactivating and setting leader to {}", leader);
active = false;
handleWakeUp();
Expand Down

0 comments on commit 7948268

Please sign in to comment.