Fix ongoing unchecked cleanup (#2342)
This commit is contained in:
parent
3642fdc5a6
commit
0b18a4b9db
2 changed files with 5 additions and 2 deletions
|
@ -259,7 +259,10 @@ void nano::bootstrap_attempt::run ()
|
|||
lazy_run ();
|
||||
lock.lock ();
|
||||
}
|
||||
node->unchecked_cleanup ();
|
||||
if (!stopped)
|
||||
{
|
||||
node->unchecked_cleanup ();
|
||||
}
|
||||
}
|
||||
stopped = true;
|
||||
condition.notify_all ();
|
||||
|
|
|
@ -651,7 +651,7 @@ void nano::node::start ()
|
|||
{
|
||||
ongoing_bootstrap ();
|
||||
}
|
||||
else if (!flags.disable_unchecked_cleanup)
|
||||
if (!flags.disable_unchecked_cleanup)
|
||||
{
|
||||
auto this_l (shared ());
|
||||
worker.push_task ([this_l]() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue