Skip to content

Commit

Permalink
[FOLD] Use notify_all
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonianb committed Oct 4, 2016
1 parent 262757c commit 4de23c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ripple/app/misc/impl/ValidatorList.cpp
Expand Up @@ -368,6 +368,7 @@ ValidatorList::setTimer ()
if (next != sites_.end ())
{
pending_ = next->nextRefresh <= clock_type::now();
cv_.notify_all();
timer_.expires_at (next->nextRefresh);
timer_.async_wait (std::bind (&ValidatorList::onTimer, this,
std::distance (sites_.begin (), next),
Expand Down Expand Up @@ -546,7 +547,7 @@ ValidatorList::onSiteFetch(

std::lock_guard <std::mutex> lock{mutex_};
fetching_ = false;
cv_.notify_one();
cv_.notify_all();
if (! stopping_)
setTimer ();
}
Expand Down

0 comments on commit 4de23c4

Please sign in to comment.