summaryrefslogtreecommitdiff
path: root/src/apiuseraccount.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-07 03:28:36 -0400
committerGitHub <noreply@github.com>2019-10-07 03:28:36 -0400
commit4dbd5412860deaf0d709be5dfac1b8772285d92d (patch)
tree2b3c730c448562138841ef4e617375dab79752f0 /src/apiuseraccount.cpp
parent96c319325626959b437e1fb72bb0a97c176785a7 (diff)
parentf10e91528b96a2588a321ef33fa65c527b816ccf (diff)
Merge pull request #857 from isanae/auth-warnings
Some warnings on authentication
Diffstat (limited to 'src/apiuseraccount.cpp')
-rw-r--r--src/apiuseraccount.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apiuseraccount.cpp b/src/apiuseraccount.cpp
index 35a868d5..976dd488 100644
--- a/src/apiuseraccount.cpp
+++ b/src/apiuseraccount.cpp
@@ -96,5 +96,5 @@ bool APIUserAccount::shouldThrottle() const
bool APIUserAccount::exhausted() const
{
- return (remainingRequests() <= 0);
+ return isValid() && (remainingRequests() <= 0);
}