mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Mark pool as idle if stratum restart is failed
This commit is contained in:
parent
08b7ab1dd4
commit
a8d683cda9
@ -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)
|
||||
|
||||
pool_died(pool);
|
||||
while (!restart_stratum(pool)) {
|
||||
pool_failed(pool);
|
||||
if (pool->removed)
|
||||
goto out;
|
||||
cgsleep_ms(30000);
|
||||
|
Loading…
Reference in New Issue
Block a user