Commit f8e28f251ddf558e3a67b40f3d9271fbdb50ca12

Con Kolivas 2013-10-08T20:42:36

Try switching pools if for some reason we end up with only idle pools and have ended up current_pool set to an idle one.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/cgminer.c b/cgminer.c
index 95e3568..3e74d4b 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -6875,6 +6875,9 @@ static void *watchpool_thread(void __maybe_unused *userdata)
 			}
 		}
 
+		if (current_pool()->idle)
+			switch_pools(NULL);
+
 		if (pool_strategy == POOL_ROTATE && now.tv_sec - rotate_tv.tv_sec > 60 * opt_rotate_period) {
 			cgtime(&rotate_tv);
 			switch_pools(NULL);