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:
parent
f6f43500c0
commit
30b665f021
@ -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…
x
Reference in New Issue
Block a user