Browse Source

Test specifically for stratum being active in pool_active.

Con Kolivas 13 years ago
parent
commit
30b665f021
1 changed files with 8 additions and 0 deletions
  1. 8 0
      cgminer.c

+ 8 - 0
cgminer.c

@@ -3967,6 +3967,14 @@ static bool pool_active(struct pool *pool, bool pinging)
 	CURL *curl;
 	CURL *curl;
 	int rolltime;
 	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();
 	curl = curl_easy_init();
 	if (unlikely(!curl)) {
 	if (unlikely(!curl)) {
 		applog(LOG_ERR, "CURL initialisation failed");
 		applog(LOG_ERR, "CURL initialisation failed");