summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilarn <jrim@rimpo.org>2019-02-02 13:23:31 -0600
committerSilarn <jrim@rimpo.org>2019-02-18 21:31:19 -0600
commit91e909bc45e8b33b0a774c71ed28175243f0cccf (patch)
treefb4b3008632f6a3092e3ab3273c085015c5d1193
parent17b36957ffe97af8f8bcb08b6cb41568ef6becdb (diff)
Request pools are not combined, we need to use the max of both pools.
-rw-r--r--src/nexusinterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nexusinterface.cpp b/src/nexusinterface.cpp
index 55201c2b..bc45d8f6 100644
--- a/src/nexusinterface.cpp
+++ b/src/nexusinterface.cpp
@@ -505,7 +505,7 @@ void NexusInterface::nextRequest()
}
}
- if (m_RemainingDailyRequests + m_RemainingHourlyRequests <= 0) {
+ if (std::max(m_RemainingDailyRequests, m_RemainingHourlyRequests) <= 0) {
m_RequestQueue.clear();
QTime time = QTime::currentTime();
QTime targetTime;