Commit 30b665f021d91e8d04b8ddaaf608267d9d1e13d1

Con Kolivas 2012-09-27T13:01:12

Test specifically for stratum being active in pool_active.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/cgminer.c b/cgminer.c
index 85574ac..4f31b5d 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3967,6 +3967,14 @@ static bool pool_active(struct pool *pool, bool pinging)
 	CURL *curl;
 	int rolltime;
 
+	if (pool->has_stratum) {
+		if (pool->stratum_active && !pinging)
+			return true;
+		if (initiate_stratum(pool))
+			return true;
+		return false;
+	}
+
 	curl = curl_easy_init();
 	if (unlikely(!curl)) {
 		applog(LOG_ERR, "CURL initialisation failed");