mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
whoops
This commit is contained in:
@@ -20,11 +20,11 @@ export function processQueue(rest: RestManager, id: string) {
|
|||||||
// ONLY ADD TIMEOUT IF ANOTHER QUEUE IS NOT PENDING
|
// ONLY ADD TIMEOUT IF ANOTHER QUEUE IS NOT PENDING
|
||||||
if (!queue.isWaiting) {
|
if (!queue.isWaiting) {
|
||||||
queue.isWaiting = true;
|
queue.isWaiting = true;
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
rest.debug(`[REST - processQueue] rate limited, running setTimeout.`);
|
rest.debug(`[REST - processQueue] rate limited, running setTimeout.`);
|
||||||
rest.processQueue(rest, id);
|
rest.processQueue(rest, id);
|
||||||
}, 1000);
|
}, urlResetIn);
|
||||||
}
|
}
|
||||||
|
|
||||||
// BREAK WHILE LOOP
|
// BREAK WHILE LOOP
|
||||||
|
|||||||
Reference in New Issue
Block a user