1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Roll work again after duplicating it to prevent duplicates on return to the clone function.

This commit is contained in:
Con Kolivas 2012-06-24 18:22:20 +10:00
parent 610302afcb
commit 0c970bbd1c

View File

@ -3647,6 +3647,9 @@ static struct work *clone_work(struct work *work)
}
roll_work(work);
work_clone = make_clone(work);
/* Roll it again to prevent duplicates should this be used
* directly later on */
roll_work(work);
cloned = true;
}