mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 00:15:04 -05:00
Fixed crash.
This commit is contained in:
@@ -101,6 +101,10 @@ xmrig::RxDataset *xmrig::Rx::dataset(int64_t)
|
|||||||
|
|
||||||
void xmrig::Rx::init(const Job &job, int initThreads, bool hugePages)
|
void xmrig::Rx::init(const Job &job, int initThreads, bool hugePages)
|
||||||
{
|
{
|
||||||
|
if (job.algorithm().family() != Algorithm::RANDOM_X) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
d_ptr->lock();
|
d_ptr->lock();
|
||||||
if (d_ptr->datasets.empty()) {
|
if (d_ptr->datasets.empty()) {
|
||||||
d_ptr->datasets.push_back(nullptr);
|
d_ptr->datasets.push_back(nullptr);
|
||||||
|
|||||||
Reference in New Issue
Block a user