From eec44a1ef3785c90fa1d21e921a8a5b996d6c0d2 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Mon, 31 Aug 2015 00:48:56 -0500 Subject: [PATCH] Making sure we're not in progress before initiating. --- rai/node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rai/node.cpp b/rai/node.cpp index ad159027..aff7025f 100644 --- a/rai/node.cpp +++ b/rai/node.cpp @@ -3816,11 +3816,11 @@ warmed_up (false) void rai::bootstrap_initiator::warmup (rai::endpoint const & endpoint_a) { std::lock_guard lock (mutex); - if (warmed_up.size () < 2 && !in_progress && warmed_up.find (endpoint_a) == warmed_up.end ()) + if (!in_progress && warmed_up.size () < 2 && !in_progress && warmed_up.find (endpoint_a) == warmed_up.end ()) { warmed_up.insert (endpoint_a); - in_progress = true; notify_listeners (); + in_progress = true; initiate (endpoint_a); } }