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; }