From 2ccdb9ae38f6e71357df341f152460df93072d28 Mon Sep 17 00:00:00 2001 From: yj <1336058017@qq.com> Date: Wed, 23 Oct 2024 08:58:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/Meeting/index.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/page/Meeting/index.tsx b/src/page/Meeting/index.tsx index 4ce44d2..dd0ee9a 100644 --- a/src/page/Meeting/index.tsx +++ b/src/page/Meeting/index.tsx @@ -1550,11 +1550,8 @@ const Meeting: React.FC = () => { // 退出房间 const leaveChannel = async (bool: boolean = true): Promise => { await stopRecorderMedia() - try { - if (bool) { - await getLeave() - } - } catch (error) { + if (bool) { + await getLeave() } await stopScreenCapture() await agora.leaveChannel()