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(virtual-background) don't treat timeout as fatal failure

Saúl Ibarra Corretgé8e65fab5446d
diff --git a/react/features/stream-effects/virtual-background/index.js b/react/features/stream-effects/virtual-background/index.js
index ad70957c56..b458822859 100644
--- a/react/features/stream-effects/virtual-background/index.js
+++ b/react/features/stream-effects/virtual-background/index.js
@@ -52,14 +52,13 @@ export async function createVirtualBackgroundEffect(virtualBackground: Object, d
tflite = await timeout(tfliteTimeout, createTFLiteModule());
}
} catch (err) {
- isWasmDisabled = true;
-
if (err?.message === '408') {
logger.error('Failed to download tflite model!');
dispatch(showWarningNotification({
titleKey: 'virtualBackground.backgroundEffectError'
}, NOTIFICATION_TIMEOUT_TYPE.LONG));
} else {
+ isWasmDisabled = true;
logger.error('Looks like WebAssembly is disabled or not supported on this browser', err);
dispatch(showWarningNotification({
titleKey: 'virtualBackground.webAssemblyWarning',