From 4f7d9d28494ff9df5e19e0643165a3beb3108373 Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 8 Nov 2024 16:04:28 +0700 Subject: [PATCH] Update BaseDispatcher.js --- src/client/voice/dispatcher/BaseDispatcher.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/voice/dispatcher/BaseDispatcher.js b/src/client/voice/dispatcher/BaseDispatcher.js index 9eca649..cdf53a8 100644 --- a/src/client/voice/dispatcher/BaseDispatcher.js +++ b/src/client/voice/dispatcher/BaseDispatcher.js @@ -145,6 +145,7 @@ class BaseDispatcher extends Writable { _cleanup() { if (this.player.dispatcher === this) this.player.dispatcher = null; + if (this.player.videoDispatcher === this) this.player.videoDispatcher = null; const { streams } = this; if (streams.opus) streams.opus.destroy(); if (streams.ffmpeg?.process) {