Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(tracks) don't throw if creating a desktop track fails

Saúl Ibarra Corretgéff656f4e6bb8
diff --git a/react/features/base/tracks/actions.web.ts b/react/features/base/tracks/actions.web.ts
index 6377067e30..8b7eb0ad30 100644
--- a/react/features/base/tracks/actions.web.ts
+++ b/react/features/base/tracks/actions.web.ts
@@ -159,7 +159,7 @@ async function _toggleScreenSharing(
} catch (error) {
dispatch(handleScreenSharingError(error));
- throw error;
+ return;
}
}
@@ -173,7 +173,7 @@ async function _toggleScreenSharing(
if (!desktopAudioTrack) {
dispatch(handleScreenSharingError(AUDIO_ONLY_SCREEN_SHARE_NO_TRACK));
- throw new Error(AUDIO_ONLY_SCREEN_SHARE_NO_TRACK);
+ return;
}
} else if (desktopVideoTrack) {
if (localScreenshare) {