From 3bfc1ff61ca478a4e7bd34d64feb22c757113f8f Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Wed, 13 Jun 2018 21:02:19 +0100 Subject: [PATCH] voice: fix write after end (#2567) --- src/client/voice/dispatcher/StreamDispatcher.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/voice/dispatcher/StreamDispatcher.js b/src/client/voice/dispatcher/StreamDispatcher.js index f4f6b96b1..f2c2ab0fb 100644 --- a/src/client/voice/dispatcher/StreamDispatcher.js +++ b/src/client/voice/dispatcher/StreamDispatcher.js @@ -214,6 +214,11 @@ class StreamDispatcher extends Writable { this.count++; } + _final(callback) { + this._writeCallback = null; + callback(); + } + _playChunk(chunk) { if (this.player.dispatcher !== this || !this.player.voiceConnection.authentication.secretKey) return; this._setSpeaking(true);