From fa886eaae9ae920092c8d3aacdd628bd8224369b Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Sat, 7 Apr 2018 15:19:18 +0100 Subject: [PATCH] voice: fix bug where no audio could be heard if voice region changed --- src/client/voice/VoiceConnection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/voice/VoiceConnection.js b/src/client/voice/VoiceConnection.js index 3213b9ae4..ac07232ff 100644 --- a/src/client/voice/VoiceConnection.js +++ b/src/client/voice/VoiceConnection.js @@ -286,7 +286,7 @@ class VoiceConnection extends EventEmitter { reconnect(token, endpoint) { this.authentication.token = token; this.authentication.endpoint = endpoint; - + this.speaking = false; this.status = VoiceStatus.RECONNECTING; /** * Emitted when the voice connection is reconnecting (typically after a region change). @@ -331,7 +331,7 @@ class VoiceConnection extends EventEmitter { */ cleanup() { this.player.destroy(); - + this.speaking = false; const { ws, udp } = this.sockets; if (ws) {