Browse Source

Merge commit '30b665f' into stratum

Luke Dashjr 13 years ago
parent
commit
a55001968e
1 changed files with 8 additions and 0 deletions
  1. 8 0
      miner.c

+ 8 - 0
miner.c

@@ -4818,6 +4818,14 @@ static bool pool_active(struct pool *pool, bool pinging)
 	struct work *work;
 	enum pool_protocol proto;
 
+	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");