From cc4aa75a7112dc3bc7b11cc0d65c820f16dee3cb Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Thu, 26 Oct 2017 18:22:43 +0100 Subject: [PATCH] Fix closing bug --- src/client/voice/player/AudioPlayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/voice/player/AudioPlayer.js b/src/client/voice/player/AudioPlayer.js index a9b07a4d0..cae69f099 100644 --- a/src/client/voice/player/AudioPlayer.js +++ b/src/client/voice/player/AudioPlayer.js @@ -32,7 +32,7 @@ class AudioPlayer extends EventEmitter { timestamp: 0, }; - this.voiceConnection.once('closing', () => this.destroyCurrentStream()); + this.voiceConnection.once('closing', () => this.destroy()); } destroy() {