删除多余代码

This commit is contained in:
yj 2024-10-23 08:58:31 +08:00
parent b3841beb65
commit 2ccdb9ae38
1 changed files with 2 additions and 5 deletions

View File

@ -1550,11 +1550,8 @@ const Meeting: React.FC = () => {
// 退出房间
const leaveChannel = async (bool: boolean = true): Promise<void> => {
await stopRecorderMedia()
try {
if (bool) {
await getLeave()
}
} catch (error) {
if (bool) {
await getLeave()
}
await stopScreenCapture()
await agora.leaveChannel()