Skip to content

Commit 04e71c9

Browse files
committed
Use shutdown instead of SetSize
1 parent 761d4e4 commit 04e71c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/miner/miner.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ void ShutdownMiners()
3737
void ShutdownCPUMiners()
3838
{
3939
if (gMiners)
40-
SetCPUMinerThreads(0);
40+
gMiners->group_cpu().Shutdown();
4141
};
4242

4343
void ShutdownGPUMiners()
4444
{
4545
#ifdef ENABLE_GPU
4646
if (gMiners)
47-
SetGPUMinerThreads(0);
47+
gMiners->group_gpu().Shutdown();
4848
#endif // ENABLE_GPU
4949
};
5050

0 commit comments

Comments
 (0)