Commit 0c970bbd1cb3277044df0c7966634c21fe8ec32f

Con Kolivas 2012-06-24T18:22:20

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index bc2c931..d9c09e1 100644
--- a/cgminer.c
+++ b/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;
 	}