#1180 Fixed race condition in nonce reset.
This commit is contained in:
parent
1cfd5f0735
commit
365667ee0a
2 changed files with 5 additions and 7 deletions
|
@ -124,16 +124,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);;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue