mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
remove useless waiting reference
This commit is contained in:
@@ -73,10 +73,7 @@ class SequentialRequestHandler extends RequestHandler {
|
|||||||
item.resolve(data);
|
item.resolve(data);
|
||||||
if (this.requestRemaining === 0) {
|
if (this.requestRemaining === 0) {
|
||||||
this.restManager.client.setTimeout(
|
this.restManager.client.setTimeout(
|
||||||
() => {
|
() => resolve(data),
|
||||||
this.waiting = false;
|
|
||||||
resolve(data);
|
|
||||||
},
|
|
||||||
this.requestResetTime - Date.now() + this.timeDifference + this.restManager.client.options.restTimeOffset
|
this.requestResetTime - Date.now() + this.timeDifference + this.restManager.client.options.restTimeOffset
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user