Commit 852f6a0eb02f1c5a715a62e6b1142ca684aa4611

Con Kolivas 2012-05-03T22:39:12

Don't try to reap curls if benchmarking is enabled.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 26259c6..58731a9 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4058,7 +4058,8 @@ static void *watchpool_thread(void __maybe_unused *userdata)
 		for (i = 0; i < total_pools; i++) {
 			struct pool *pool = pools[i];
 
-			reap_curl(pool);
+			if (!opt_benchmark)
+				reap_curl(pool);
 			if (!pool->enabled)
 				continue;