mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
fix(tracks) don't throw if creating a desktop track fails
There is nobody to catch it and we already show the error as a notification.
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
a27b78cef0
commit
ff656f4e6b
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user