1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-07 07:55:04 -05:00

Miner: fix state machine

Remove unexpected resume due to disconnect during dataset init
This commit is contained in:
cohcho
2020-10-06 13:34:19 +00:00
parent 7bdeba4d08
commit 3ee0cd8c51

View File

@@ -134,8 +134,6 @@ public:
Nonce::pause(true);
}
active = true;
if (reset) {
Nonce::reset(job.index());
}
@@ -146,7 +144,7 @@ public:
Nonce::touch();
if (enabled) {
if (active && enabled) {
Nonce::pause(false);
}
@@ -536,6 +534,8 @@ void xmrig::Miner::setJob(const Job &job, bool donate)
mutex.unlock();
d_ptr->active = true;
if (ready) {
d_ptr->handleJobChange();
}