Browse Source

Mark pool as idle if stratum restart is failed

djm34
elbandi 11 years ago committed by Jan Berdajs
parent
commit
e32dcd7190
  1. 2
      sgminer.c

2
sgminer.c

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

Loading…
Cancel
Save