1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-02-03 10:24:24 +00:00

stratum: check if we have multiple pools to failover

This commit is contained in:
Tanguy Pruvot 2015-05-28 06:50:21 +02:00
parent e99ff6c15b
commit 75d721adb9

View File

@ -2274,7 +2274,7 @@ wait_stratum_url:
{
stratum_disconnect(&stratum);
if (opt_retries >= 0 && ++failures > opt_retries) {
if (opt_pool_failover) {
if (num_pools > 1 && opt_pool_failover) {
applog(LOG_WARNING, "Stratum connect timeout, failover...");
pool_switch_next();
} else {