Restart is zeroed in the mining thread so no need to do it inside the bitforce code.
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;