1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

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.

This commit is contained in:
Con Kolivas 2011-07-23 09:37:22 +10:00
parent 8d4fbc3258
commit b5358483c3

2
main.c
View File

@ -3437,7 +3437,7 @@ int main (int argc, char *argv[])
quit(1, "wakeup thread create failed"); quit(1, "wakeup thread create failed");
/* Now that everything's ready put enough work in the queue */ /* 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())) if (unlikely(!queue_request()))
quit(1, "Failed to queue_request in main"); quit(1, "Failed to queue_request in main");
if (!opt_quiet) if (!opt_quiet)