Commit 3ab5dba67e39ede32aae16498e4eccf38d71045f

Con Kolivas 2012-08-21T22:50:09

Queue enough requests to get started.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 1a13d30..ae65103 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -5701,6 +5701,9 @@ begin_bench:
 	pthread_detach(thr->pth);
 #endif
 
+	for (i = 0; i < mining_threads + opt_queue; i++)
+		queue_request(NULL, false);
+
 	/* main loop - simply wait for workio thread to exit. This is not the
 	 * normal exit path and only occurs should the workio_thread die
 	 * unexpectedly */