Skip to content

Commit

Permalink
fix test - stop scheduler threads separately.
Browse files Browse the repository at this point in the history
  • Loading branch information
Naviabheeman committed Jun 20, 2023
1 parent 1279321 commit cc7f9b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,13 @@ void Shutdown()

StopTorControl();

// After everything has been shut down, but before things get flushed, stop the
// CScheduler/checkqueue, scheduler and load block thread.
// After everything has been shut down, but before things get flushed,
//1. stop the checkqueue threads.
StopScriptCheckWorkerThreads();

//2. stop scheduler and load block threads.
scheduler.stop();

// After the threads that potentially access these pointers have been stopped,
// destruct and reset all to nullptr.
peerLogic.reset();
Expand Down

0 comments on commit cc7f9b1

Please sign in to comment.