This commit is contained in:
Skillz4Killz
2021-10-12 19:01:03 +00:00
committed by GitHub
parent f3b818491a
commit e3b1419e1c
+2 -2
View File
@@ -20,11 +20,11 @@ export function processQueue(rest: RestManager, id: string) {
// ONLY ADD TIMEOUT IF ANOTHER QUEUE IS NOT PENDING
if (!queue.isWaiting) {
queue.isWaiting = true;
setTimeout(() => {
rest.debug(`[REST - processQueue] rate limited, running setTimeout.`);
rest.processQueue(rest, id);
}, 1000);
}, urlResetIn);
}
// BREAK WHILE LOOP