Browse Source

fix: mic kept alive after call issue

Timothy J. Baek 7 months ago
parent
commit
8dfbdbd883
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/components/chat/MessageInput/CallOverlay.svelte

+ 2 - 2
src/lib/components/chat/MessageInput/CallOverlay.svelte

@@ -922,8 +922,8 @@
 				<button
 					class=" p-3 rounded-full bg-gray-50 dark:bg-gray-900"
 					on:click={async () => {
-						stopAudioStream();
-						stopVideoStream();
+						await stopAudioStream();
+						await stopVideoStream();
 						showCallOverlay.set(false);
 						dispatch('close');
 					}}