mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-23 03:05:09 +00:00
Fixed crash.
This commit is contained in:
parent
d4772cbd5d
commit
a5e8b31d55
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue