mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
Nodes: don't show exhaustion warning if single custom node is used
This commit is contained in:
parent
e0f7473ed4
commit
348685a025
1 changed files with 6 additions and 2 deletions
|
@ -207,6 +207,7 @@ FeatherNode Nodes::pickEligibleNode() {
|
|||
auto nodes = wsMode ? m_websocketNodes : m_customNodes;
|
||||
|
||||
if (nodes.count() == 0) {
|
||||
if (wsMode)
|
||||
this->exhausted();
|
||||
return rtn;
|
||||
}
|
||||
|
@ -250,7 +251,10 @@ FeatherNode Nodes::pickEligibleNode() {
|
|||
}
|
||||
|
||||
// All nodes tried, and none eligible
|
||||
// Don't show node exhaustion warning if single custom node is used
|
||||
if (wsMode || node_indeces.size() > 1) {
|
||||
this->exhausted();
|
||||
}
|
||||
return rtn;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue