Browse Source

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

Con Kolivas 13 years ago
parent
commit
0c970bbd1c
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cgminer.c

+ 3 - 0
cgminer.c

@@ -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;
 	}