mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
fix: burst request mode hanging permanently
This commit is contained in:
@@ -62,7 +62,8 @@ class BurstRequestHandler extends RequestHandler {
|
|||||||
|
|
||||||
handle() {
|
handle() {
|
||||||
super.handle();
|
super.handle();
|
||||||
if (this.remaining <= 0 || this.queue.length === 0 || this.globalLimit) return;
|
if (this.queue.length === 0) return;
|
||||||
|
if ((this.remaining <= 0 || this.globalLimit) && Date.now() - this.timeDifference < this.resetTime) return;
|
||||||
this.execute(this.queue.shift());
|
this.execute(this.queue.shift());
|
||||||
this.remaining--;
|
this.remaining--;
|
||||||
this.handle();
|
this.handle();
|
||||||
|
|||||||
Reference in New Issue
Block a user