From 75d721adb9540528163c9524ad4e8603c574d34b Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Thu, 28 May 2015 06:50:21 +0200 Subject: [PATCH] stratum: check if we have multiple pools to failover --- ccminer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccminer.cpp b/ccminer.cpp index 836a5cc..a7cc96f 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -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 {