set resuming to false once we try to connect]

This commit is contained in:
hippoz 2022-02-03 20:44:07 +02:00
parent 0950241d3b
commit d92248543a
No known key found for this signature in database
GPG key ID: 7C52899193467641

View file

@ -107,6 +107,7 @@ class DiscordClient extends EventEmitter {
if (this.resuming) { if (this.resuming) {
console.warn("DiscordClient: resuming..."); console.warn("DiscordClient: resuming...");
this.resuming = false;
ws.send(JSON.stringify({ ws.send(JSON.stringify({
op: opcodes.RESUME, op: opcodes.RESUME,
d: this._getResumePayload() d: this._getResumePayload()