From 348685a025efd850fcca3690bbffcf83bea6562f Mon Sep 17 00:00:00 2001 From: tobtoht Date: Thu, 4 Feb 2021 00:46:12 +0100 Subject: [PATCH] Nodes: don't show exhaustion warning if single custom node is used --- src/utils/nodes.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/utils/nodes.cpp b/src/utils/nodes.cpp index dfea265..f75c520 100644 --- a/src/utils/nodes.cpp +++ b/src/utils/nodes.cpp @@ -207,7 +207,8 @@ FeatherNode Nodes::pickEligibleNode() { auto nodes = wsMode ? m_websocketNodes : m_customNodes; if (nodes.count() == 0) { - this->exhausted(); + if (wsMode) + this->exhausted(); return rtn; } @@ -250,7 +251,10 @@ FeatherNode Nodes::pickEligibleNode() { } // All nodes tried, and none eligible - this->exhausted(); + // Don't show node exhaustion warning if single custom node is used + if (wsMode || node_indeces.size() > 1) { + this->exhausted(); + } return rtn; }