Merge 67cd78dbc2 into merged_master (Elements PR #1451)

This commit is contained in:
Byron Hambly 2025-07-10 11:56:55 +02:00
commit bd65b886f1
6 changed files with 15 additions and 7 deletions

View file

@ -276,9 +276,9 @@ void Shutdown(NodeContext& node)
// After everything has been shut down, but before things get flushed, stop the
// CScheduler/checkqueue, scheduler and load block thread.
if (node.chainman && node.chainman->m_thread_load.joinable()) node.chainman->m_thread_load.join();
if (node.scheduler) node.scheduler->stop();
if (node.reverification_scheduler) node.reverification_scheduler->stop();
if (node.chainman && node.chainman->m_thread_load.joinable()) node.chainman->m_thread_load.join();
StopScriptCheckWorkerThreads();
// After the threads that potentially access these pointers have been stopped,