Skip to content

Commit

Permalink
scheduler: don't rely on boost interrupt on shutdown
Browse files Browse the repository at this point in the history
Calling interrupt_all() will immediately stop the scheduler, so it's
safe to invoke stop() beforehand, and this removes the reliance on boost
to interrupt serviceQueue().

Cherry-picked from: 306f71b
  • Loading branch information
ajtowns authored and xanimo committed Mar 30, 2024
1 parent 675230c commit 2be791a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ void Shutdown()
g_connman.reset();

StopTorControl();

UnregisterNodeSignals(GetNodeSignals());
if (fDumpMempoolLater)
DumpMempool();
Expand Down

0 comments on commit 2be791a

Please sign in to comment.