Browse Source

Mark pool as idle if stratum restart is failed

windows
elbandi 11 years ago
parent
commit
a8d683cda9
  1. 2
      sgminer.c

2
sgminer.c

@ -5440,6 +5440,7 @@ static void *stratum_rthread(void *userdata) @@ -5440,6 +5440,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);
@ -5480,6 +5481,7 @@ static void *stratum_rthread(void *userdata) @@ -5480,6 +5481,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