Merge pull request #2716 from Spudz76/dev-initGR
Only initGhostRider() when job is in the family
This commit is contained in:
commit
cb5f4a9c17
@ -564,7 +564,9 @@ void xmrig::Miner::setJob(const Job &job, bool donate)
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef XMRIG_ALGO_GHOSTRIDER
|
# ifdef XMRIG_ALGO_GHOSTRIDER
|
||||||
d_ptr->initGhostRider();
|
if (job.algorithm().family() == Algorithm::GHOSTRIDER) {
|
||||||
|
d_ptr->initGhostRider();
|
||||||
|
}
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user