Only initGhostRider() when job is in the family

This commit is contained in:
Tony Butler 2021-11-24 13:04:03 -07:00
parent 0dcafeb571
commit 3a8ebfdcb6

View file

@ -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();