Ascendboot stop

This commit is contained in:
Piotr Wójcik 2024-05-06 16:16:30 +02:00
commit da5a4a808c
2 changed files with 5 additions and 7 deletions

View file

@ -73,9 +73,10 @@ void nano::bootstrap_ascending::service::start ()
void nano::bootstrap_ascending::service::stop ()
{
nano::unique_lock<nano::mutex> lock{ mutex };
stopped = true;
lock.unlock ();
{
nano::lock_guard<nano::mutex> lock{ mutex };
stopped = true;
}
condition.notify_all ();
nano::join_or_pass (thread);
nano::join_or_pass (timeout_thread);

View file

@ -745,10 +745,7 @@ void nano::node::stop ()
// No tasks may wait for work generation in I/O threads, or termination signal capturing will be unable to call node::stop()
distributed_work.stop ();
backlog.stop ();
if (!flags.disable_ascending_bootstrap)
{
ascendboot.stop ();
}
ascendboot.stop ();
rep_crawler.stop ();
unchecked.stop ();
block_processor.stop ();