From 3a8ebfdcb6b3e69d3081ad219c05a09990649818 Mon Sep 17 00:00:00 2001 From: Tony Butler Date: Wed, 24 Nov 2021 13:04:03 -0700 Subject: [PATCH] Only initGhostRider() when job is in the family --- src/core/Miner.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/Miner.cpp b/src/core/Miner.cpp index 54323c35d..afebde850 100644 --- a/src/core/Miner.cpp +++ b/src/core/Miner.cpp @@ -564,7 +564,9 @@ void xmrig::Miner::setJob(const Job &job, bool donate) # endif # ifdef XMRIG_ALGO_GHOSTRIDER - d_ptr->initGhostRider(); + if (job.algorithm().family() == Algorithm::GHOSTRIDER) { + d_ptr->initGhostRider(); + } # endif mutex.unlock();