Ascendboot stop
This commit is contained in:
parent
a29f929162
commit
da5a4a808c
2 changed files with 5 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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 ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue