Fix massive timeout/interval memory leaks

This commit is contained in:
Schuyler Cebulskie
2016-09-19 03:49:42 -04:00
parent 6f7deba4b3
commit 7d8667694d
5 changed files with 41 additions and 28 deletions

View File

@@ -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() {