1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-05 11:34:16 +00:00

Test specifically for stratum being active in pool_active.

This commit is contained in:
Con Kolivas 2012-09-27 13:01:12 +10:00
parent f6f43500c0
commit 30b665f021

View File

@ -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");