wait for mining threads to fully exit before stopping

This commit is contained in:
dan_s
2026-02-17 21:19:49 -06:00
parent a983a89f9a
commit 16149aed5a

View File

@@ -1986,6 +1986,8 @@ void static BitcoinMiner()
if (minerThreads != NULL)
{
minerThreads->interrupt_all();
// Wait for all miner threads to fully terminate before destroying shared resources
minerThreads->join_all();
delete minerThreads;
minerThreads = NULL;