Fix closing bug

This commit is contained in:
Amish Shah 2017-10-26 18:22:43 +01:00
parent 387d96bd6b
commit cc4aa75a71
No known key found for this signature in database
GPG key ID: 904349C1207D7967

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