Skip to content

Commit

Permalink
Added check for global rate limit prior to executing requests in BotR…
Browse files Browse the repository at this point in the history
…ateLimiter
  • Loading branch information
MinnDevelopment committed Sep 23, 2017
1 parent 7160efd commit 9245a83
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -303,6 +303,9 @@ public void run()
{
for (Iterator<Request> it = requests.iterator(); it.hasNext(); )
{
Long limit = getRateLimit();
if (limit != null && limit > 0)
break; // possible global cooldown here
Request request = null;
try
{
Expand Down

0 comments on commit 9245a83

Please sign in to comment.