Skip to content

Commit

Permalink
Revert "Unlocking lock in all branch cases otherwise lock.lock () can…
Browse files Browse the repository at this point in the history
… double-lock. (nanocurrency#3572)"

This reverts commit 7eddc04.
  • Loading branch information
dsiganos committed Dec 6, 2021
1 parent 7eddc04 commit 0bd1169
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nano/node/election_scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@ void nano::election_scheduler::run ()
election->transition_active ();
}
}
else
{
lock.unlock ();
}
notify ();
lock.lock ();
}
Expand Down

0 comments on commit 0bd1169

Please sign in to comment.