From 4edcaa03bec21f216c63a3068ebee5d82e5badfc Mon Sep 17 00:00:00 2001 From: SChernykh Date: Fri, 29 May 2020 08:39:03 +0200 Subject: [PATCH] Update EthStratumClient.cpp --- src/base/net/stratum/EthStratumClient.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/base/net/stratum/EthStratumClient.cpp b/src/base/net/stratum/EthStratumClient.cpp index 378a8ccb6..232f37e48 100644 --- a/src/base/net/stratum/EthStratumClient.cpp +++ b/src/base/net/stratum/EthStratumClient.cpp @@ -250,8 +250,10 @@ void EthStratumClient::parseNotification(const char* method, const rapidjson::Va bool ok = true; m_listener->onVerifyAlgorithm(this, algo, &ok); - if (!ok && !isQuiet()) { - LOG_ERR("[%s] incompatible/disabled algorithm \"%s\" detected, reconnect", url(), algo.shortName()); + if (!ok) { + if (!isQuiet()) { + LOG_ERR("[%s] incompatible/disabled algorithm \"%s\" detected, reconnect", url(), algo.shortName()); + } disconnect(); return; }