mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Fix massive timeout/interval memory leaks
This commit is contained in:
@@ -31,7 +31,7 @@ class VoiceConnectionWebSocket extends EventEmitter {
|
||||
|
||||
_shutdown() {
|
||||
if (this.ws) this.ws.close();
|
||||
clearInterval(this.heartbeat);
|
||||
this.voiceConnection.manager.client.clearInterval(this.heartbeat);
|
||||
}
|
||||
|
||||
_onOpen() {
|
||||
|
||||
Reference in New Issue
Block a user