Browse Source

Bugfix: bitforce_queue: Defer nonce count check until after thiswork has been identified (or handled as NULL)

Luke Dashjr 12 years ago
parent
commit
a64964803b
1 changed files with 5 additions and 5 deletions
  1. 5 5
      driver-bitforce.c

+ 5 - 5
driver-bitforce.c

@@ -1564,11 +1564,6 @@ bool bitforce_queue_do_results(struct thr_info *thr)
 			}
 			for (int i = 0; i < chipno; ++i)
 				chip_cgpu = chip_cgpu->next_proc;
-			if (unlikely(!end[0]))
-			{
-				applog(LOG_ERR, "%"PRIpreprv": Missing nonce count in queue results: %s", chip_cgpu->proc_repr, buf);
-				goto finishresult;
-			}
 		}
 		chip_thr = chip_cgpu->thr[0];
 		
@@ -1582,6 +1577,11 @@ bool bitforce_queue_do_results(struct thr_info *thr)
 			goto next_qline;
 		}
 		
+		if (unlikely(!end[0]))
+		{
+			applog(LOG_ERR, "%"PRIpreprv": Missing nonce count in queue results: %s", chip_cgpu->proc_repr, buf);
+			goto finishresult;
+		}
 		if (strtol(&end[1], &end, 10))
 		{
 			if (unlikely(!end[0]))