1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Mark pool as idle if stratum restart is failed

This commit is contained in:
elbandi 2014-05-07 00:02:10 +02:00 committed by Jan Berdajs
parent 98676763b9
commit e32dcd7190

View File

@ -5430,6 +5430,7 @@ static void *stratum_rthread(void *userdata)
if (!restart_stratum(pool)) { if (!restart_stratum(pool)) {
pool_died(pool); pool_died(pool);
while (!restart_stratum(pool)) { while (!restart_stratum(pool)) {
pool_failed(pool);
if (pool->removed) if (pool->removed)
goto out; goto out;
cgsleep_ms(30000); cgsleep_ms(30000);
@ -5470,6 +5471,7 @@ static void *stratum_rthread(void *userdata)
pool_died(pool); pool_died(pool);
while (!restart_stratum(pool)) { while (!restart_stratum(pool)) {
pool_failed(pool);
if (pool->removed) if (pool->removed)
goto out; goto out;
cgsleep_ms(30000); cgsleep_ms(30000);