1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

Start the stratum thread only if we successfully init and authorise it, otherwise unset the init flag.

This commit is contained in:
ckolivas 2013-03-08 15:32:10 +11:00
parent e746ed6412
commit 8c87807519

View File

@ -4997,7 +4997,10 @@ retry_stratum:
bool ret = initiate_stratum(pool) && auth_stratum(pool);
pool->idle = ret;
init_stratum_thread(pool);
if (ret)
init_stratum_thread(pool);
else
pool_tclear(pool, &pool->stratum_init);
return ret;
}
return pool->stratum_active;