mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 13:52:02 +00:00
Try switching pools if for some reason we end up with only idle pools and have ended up current_pool set to an idle one.
This commit is contained in:
parent
3b527f14d0
commit
f8e28f251d
@ -6875,6 +6875,9 @@ static void *watchpool_thread(void __maybe_unused *userdata)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (current_pool()->idle)
|
||||||
|
switch_pools(NULL);
|
||||||
|
|
||||||
if (pool_strategy == POOL_ROTATE && now.tv_sec - rotate_tv.tv_sec > 60 * opt_rotate_period) {
|
if (pool_strategy == POOL_ROTATE && now.tv_sec - rotate_tv.tv_sec > 60 * opt_rotate_period) {
|
||||||
cgtime(&rotate_tv);
|
cgtime(&rotate_tv);
|
||||||
switch_pools(NULL);
|
switch_pools(NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user