Commit 848373d13b48124d3479eed3b22764931388199b

Con Kolivas 2012-05-06T14:24:50

Ensure we test for a pool recovering from idle so long as it's not set to disabled.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 677e47d..8340ac9 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4131,7 +4131,7 @@ static void *watchpool_thread(void __maybe_unused *userdata)
 
 			if (!opt_benchmark)
 				reap_curl(pool);
-			if (pool->enabled != POOL_ENABLED)
+			if (pool->enabled == POOL_DISABLED)
 				continue;
 
 			/* Test pool is idle once every minute */