浏览代码

fix: mic kept alive after call issue

Timothy J. Baek 8 月之前
父节点
当前提交
8dfbdbd883
共有 1 个文件被更改,包括 2 次插入2 次删除
  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');
 					}}