mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 21:42:05 +00:00
remove useless waiting reference
This commit is contained in:
parent
8dfc96d460
commit
25e0048bbf
1 changed files with 1 additions and 4 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue