mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
Nodes: don't show exhaustion warning if single custom node is used
This commit is contained in:
+6
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user