mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 18:14:20 +00:00
Start the stratum thread only if we successfully init and authorise it, otherwise unset the init flag.
This commit is contained in:
parent
e746ed6412
commit
8c87807519
@ -4997,7 +4997,10 @@ retry_stratum:
|
|||||||
bool ret = initiate_stratum(pool) && auth_stratum(pool);
|
bool ret = initiate_stratum(pool) && auth_stratum(pool);
|
||||||
|
|
||||||
pool->idle = ret;
|
pool->idle = ret;
|
||||||
init_stratum_thread(pool);
|
if (ret)
|
||||||
|
init_stratum_thread(pool);
|
||||||
|
else
|
||||||
|
pool_tclear(pool, &pool->stratum_init);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
return pool->stratum_active;
|
return pool->stratum_active;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user