Commit b5358483c362f395464f837531e0534a738f7a83

Con Kolivas 2011-07-23T09:37:22

Cannot print the status of threads that don't exist so just queue enough work for the number of mining threads to prevent crash with -Q N.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.c b/main.c
index ed03a0a..79c4ae6 100644
--- a/main.c
+++ b/main.c
@@ -3437,7 +3437,7 @@ int main (int argc, char *argv[])
 		quit(1, "wakeup thread create failed");
 
 	/* Now that everything's ready put enough work in the queue */
-	for (i = 0; i < opt_queue + mining_threads; i++) {
+	for (i = 0; i < mining_threads; i++) {
 		if (unlikely(!queue_request()))
 			quit(1, "Failed to queue_request in main");
 		if (!opt_quiet)