yangjie #28

Merged
yangqiang merged 32 commits from yangjie into master 2024-10-29 15:15:48 +08:00
1 changed files with 2 additions and 5 deletions
Showing only changes of commit 2ccdb9ae38 - Show all commits

View File

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