Fixed crash.

This commit is contained in:
XMRig 2019-07-25 19:27:12 +07:00
parent d4772cbd5d
commit a5e8b31d55

View file

@ -101,6 +101,10 @@ xmrig::RxDataset *xmrig::Rx::dataset(int64_t)
void xmrig::Rx::init(const Job &job, int initThreads, bool hugePages)
{
if (job.algorithm().family() != Algorithm::RANDOM_X) {
return;
}
d_ptr->lock();
if (d_ptr->datasets.empty()) {
d_ptr->datasets.push_back(nullptr);