Browse Source

modminer: Finish a process results run with a nonce poll, rather than sleep

Luke Dashjr 13 years ago
parent
commit
10705bd278
1 changed files with 3 additions and 3 deletions
  1. 3 3
      driver-modminer.c

+ 3 - 3
driver-modminer.c

@@ -541,11 +541,11 @@ modminer_process_results(struct thr_info*thr)
 			state->no_nonce_counter = 0;
 			modminer_reduce_clock(thr, true);
 		}
-		if (work_restart(thr))
-			break;
-		usleep(10000);
 		if (work_restart(thr) || !--iter)
 			break;
+		usleep(1000);
+		if (work_restart(thr))
+			break;
 		mutex_lock(&modminer->device_mutex);
 		fd = modminer->device_fd;
 	}