Backport fixes from v4.

This commit is contained in:
XMRig 2019-09-20 14:54:18 +07:00
parent 1cd1f13fee
commit f6752310b4
4 changed files with 11 additions and 8 deletions

View file

@ -112,16 +112,15 @@ public:
{
active = true;
if (reset) {
Nonce::reset(job.index());
}
for (IBackend *backend : backends) {
backend->setJob(job);
}
if (reset) {
Nonce::reset(job.index());
}
else {
Nonce::touch();
}
Nonce::touch();
if (enabled) {
Nonce::pause(false);;