fix(breakout-rooms) fix not waiting to leave the room

We need to wait for it before we start joining.
This commit is contained in:
Saúl Ibarra Corretgé 2021-12-07 15:48:47 +01:00 committed by Saúl Ibarra Corretgé
parent bfc0567e32
commit ae3fb20d65
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ export function moveToRoom(roomId?: string) {
dispatch(setVideoMuted(video.muted));
} else {
try {
APP.conference.leaveRoom(false /* doDisconnect */);
await APP.conference.leaveRoom(false /* doDisconnect */);
} catch (error) {
logger.warn('APP.conference.leaveRoom() rejected with:', error);