Fixing weak pointer check.
This commit is contained in:
parent
4c09fa24a6
commit
c316bd0d5e
1 changed files with 6 additions and 3 deletions
|
@ -813,10 +813,13 @@ void rai::bootstrap_initiator::warmup (rai::endpoint const & endpoint_a)
|
|||
{
|
||||
std::lock_guard <std::mutex> lock (mutex);
|
||||
auto attempt_l (attempt.lock ());
|
||||
if (attempt_l == nullptr && warmed_up < 3)
|
||||
if (attempt_l == nullptr)
|
||||
{
|
||||
++warmed_up;
|
||||
do_warmup = true;
|
||||
if (warmed_up < 3)
|
||||
{
|
||||
++warmed_up;
|
||||
do_warmup = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue