From 9b11d390e988f66a605b9c52a42d00cffc5ce5f2 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Tue, 13 Apr 2021 12:50:03 +0200 Subject: [PATCH] only call processRateLimitedPaths when processing is false --- src/rest/process_request_headers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/process_request_headers.ts b/src/rest/process_request_headers.ts index bb855d616..f11bdc0bb 100644 --- a/src/rest/process_request_headers.ts +++ b/src/rest/process_request_headers.ts @@ -56,7 +56,7 @@ export function processRequestHeaders(url: string, headers: Headers) { } } - if (ratelimited && rest.processingRateLimitedPaths) { + if (ratelimited && !rest.processingRateLimitedPaths) { rest.processRateLimitedPaths(); } return ratelimited ? bucketId : undefined;