Skip to content

Commit

Permalink
Disable pool_connection () for stopped bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiySW committed Dec 28, 2018
1 parent d47c54e commit 13234f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rai/node/bootstrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,10 @@ void rai::bootstrap_attempt::pool_connection (std::shared_ptr<rai::bootstrap_cli
{
{
std::lock_guard<std::mutex> lock (mutex);
idle.push_front (client_a);
if (!stopped && !client_a->pending_stop)
{
idle.push_front (client_a);
}
}
condition.notify_all ();
}
Expand Down

0 comments on commit 13234f9

Please sign in to comment.