Browse Source

littlefury: Safeguard on job switching

Luke Dashjr 12 years ago
parent
commit
d95c1f06a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-littlefury.c

+ 1 - 1
driver-littlefury.c

@@ -358,7 +358,7 @@ bool littlefury_do_io(struct thr_info *thr)
 	struct bitfury_device * const bitfury = thr->cgpu->device_data;
 	struct bitfury_device * const bitfury = thr->cgpu->device_data;
 	bitfury->results_n = 0;
 	bitfury->results_n = 0;
 	libbitfury_sendHashData1(bitfury, thr->work);
 	libbitfury_sendHashData1(bitfury, thr->work);
-	if (bitfury->job_switched)
+	if (bitfury->job_switched && thr->next_work)
 	{
 	{
 		mt_job_transition(thr);
 		mt_job_transition(thr);
 		job_start_complete(thr);
 		job_start_complete(thr);