优化进入房间快速退出提示无效房间号

This commit is contained in:
yj 2024-12-26 15:15:36 +08:00
parent 1ad41eaf26
commit 3bc5994506
1 changed files with 7 additions and 7 deletions

View File

@ -1692,13 +1692,13 @@ const Meeting: React.FC = () => {
// 退出房间
const leaveChannel = async (bool: boolean = true): Promise<void> => {
setIsLeave(true)
await stopScreenCapture()
await stopRecorderMedia()
if (bool) {
await getLeave()
}
await agora.leaveChannel()
setTimeout(() => {
setTimeout(async () => {
await stopScreenCapture()
await stopRecorderMedia()
if (bool) {
await getLeave()
}
await agora.leaveChannel()
setRecorder((res: any) => {
if (res) {