Fix closing bug

This commit is contained in:
Amish Shah
2017-10-26 18:22:43 +01:00
parent 387d96bd6b
commit cc4aa75a71

View File

@@ -32,7 +32,7 @@ class AudioPlayer extends EventEmitter {
timestamp: 0, timestamp: 0,
}; };
this.voiceConnection.once('closing', () => this.destroyCurrentStream()); this.voiceConnection.once('closing', () => this.destroy());
} }
destroy() { destroy() {