mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix heartbeats once and for all (#1016)
This commit is contained in:
@@ -416,7 +416,7 @@ class Client extends EventEmitter {
|
||||
_pong(startTime) {
|
||||
this.pings.unshift(Date.now() - startTime);
|
||||
if (this.pings.length > 3) this.pings.length = 3;
|
||||
this.clearTimeout(this._ackTimeout);
|
||||
this.ws.lastHeartbeatAck = true;
|
||||
}
|
||||
|
||||
_setPresence(id, presence) {
|
||||
|
||||
Reference in New Issue
Block a user