mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
add handler in case heartbeat is not acked (#1013)
* add handler in case heartbeat is not acked * ffs
This commit is contained in:
@@ -416,6 +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);
|
||||
}
|
||||
|
||||
_setPresence(id, presence) {
|
||||
|
||||
Reference in New Issue
Block a user