From 485a6430a804aba7368e105e9f8bd0c093d7491d Mon Sep 17 00:00:00 2001 From: NotSugden <28943913+NotSugden@users.noreply.github.com> Date: Wed, 26 Feb 2020 18:49:32 +0000 Subject: [PATCH] fix(StreamDispatcher): only listen to finish event once --- src/client/voice/dispatcher/StreamDispatcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/voice/dispatcher/StreamDispatcher.js b/src/client/voice/dispatcher/StreamDispatcher.js index 8901767e5..cb779dc63 100644 --- a/src/client/voice/dispatcher/StreamDispatcher.js +++ b/src/client/voice/dispatcher/StreamDispatcher.js @@ -66,7 +66,7 @@ class StreamDispatcher extends Writable { this._silentPausedTime = 0; this.count = 0; - this.on('finish', () => { + this.once('finish', () => { this._cleanup(); this._setSpeaking(0); });