Browse Source

Bugfix: bitforce: Clear want_to_send_queue flag when flushing queue, since we can't send an empty queue

Luke Dashjr 12 years ago
parent
commit
4454bd5c31
1 changed files with 1 additions and 0 deletions
  1. 1 0
      driver-bitforce.c

+ 1 - 0
driver-bitforce.c

@@ -1388,6 +1388,7 @@ void bitforce_queue_flush(struct thr_info *thr)
 		work_list_del(thr->work_list.prev);
 		work_list_del(thr->work_list.prev);
 	thr->queue_full = false;
 	thr->queue_full = false;
 	data->just_flushed = true;
 	data->just_flushed = true;
+	data->want_to_send_queue = false;
 	
 	
 	bitforce_queue_do_results(thr);
 	bitforce_queue_do_results(thr);
 }
 }