mirror of
https://git.wownero.com/wowlet/wowlet.git
synced 2024-08-15 01:03:14 +00:00
Merge pull request 'Nodes: don't show exhaustion warning if single custom node is used' (#327) from tobtoht/feather:node_warning into master
Reviewed-on: https://git.wownero.com/feather/feather/pulls/327
This commit is contained in:
commit
08ee34c9a6
1 changed files with 6 additions and 2 deletions
|
@ -207,7 +207,8 @@ FeatherNode Nodes::pickEligibleNode() {
|
||||||
auto nodes = wsMode ? m_websocketNodes : m_customNodes;
|
auto nodes = wsMode ? m_websocketNodes : m_customNodes;
|
||||||
|
|
||||||
if (nodes.count() == 0) {
|
if (nodes.count() == 0) {
|
||||||
this->exhausted();
|
if (wsMode)
|
||||||
|
this->exhausted();
|
||||||
return rtn;
|
return rtn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -250,7 +251,10 @@ FeatherNode Nodes::pickEligibleNode() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// All nodes tried, and none eligible
|
// 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;
|
return rtn;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue