Browse Source

Test specifically for stratum being active in pool_active.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
30b665f021
  1. 8
      cgminer.c

8
cgminer.c

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

Loading…
Cancel
Save