From 18ae5860bc860ce46517e23da14dc675a8072b9f Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 13 Jun 2024 20:16:23 -0700 Subject: [PATCH] refac --- src/lib/components/chat/MessageInput/CallOverlay.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/components/chat/MessageInput/CallOverlay.svelte b/src/lib/components/chat/MessageInput/CallOverlay.svelte index cc6a060ee..dde810251 100644 --- a/src/lib/components/chat/MessageInput/CallOverlay.svelte +++ b/src/lib/components/chat/MessageInput/CallOverlay.svelte @@ -533,6 +533,10 @@ eventTarget.removeEventListener('chat', chatEventHandler); eventTarget.removeEventListener('chat:finish', chatFinishHandler); + audioAbortController.abort(); + await tick(); + await stopAllAudio(); + await stopRecordingCallback(false); await stopCamera(); };