mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 12:09:22 +00:00
Only initGhostRider() when job is in the family
This commit is contained in:
parent
0dcafeb571
commit
3a8ebfdcb6
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue