Commit 391e1f7eb1d0197a29ea9202c2e0d775484b6208

ckolivas 2012-07-02T16:13:53

Restart is zeroed in the mining thread so no need to do it inside the bitforce code.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-bitforce.c b/driver-bitforce.c
index 56d3ff6..23dc39b 100644
--- a/driver-bitforce.c
+++ b/driver-bitforce.c
@@ -213,7 +213,6 @@ static uint64_t bitforce_scanhash(struct thr_info *thr, struct work *work, uint6
 	i += 1000;
 
 	/* Now start looking for results. Stupid polling every 10ms... */
-	work_restart[thr_id].restart = 0;
 	while (42) {
 		if (unlikely(work_restart[thr_id].restart))
 			return 0;