From f10e91528b96a2588a321ef33fa65c527b816ccf Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Mon, 7 Oct 2019 03:26:20 -0400 Subject: remaining requests can be 0 if not logged in, would show incorrect throttling message validation dialog could pop even if logged in typos in comments --- src/apiuseraccount.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/apiuseraccount.cpp') 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); } -- cgit v1.3.1