Merge pull request #2716 from Spudz76/dev-initGR

Only initGhostRider() when job is in the family
This commit is contained in:
xmrig 2021-11-25 09:09:16 +07:00 committed by GitHub
commit cb5f4a9c17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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