From 5839e0b270ae0589b27ba553daae316d1a6fe4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Tue, 1 Jun 2021 09:17:01 +0200 Subject: [PATCH] Throwing exceptions into store subscribers is wreaking havok --- front/src/Phaser/Login/EnableCameraScene.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/front/src/Phaser/Login/EnableCameraScene.ts b/front/src/Phaser/Login/EnableCameraScene.ts index 73fa7303..3eabe4d7 100644 --- a/front/src/Phaser/Login/EnableCameraScene.ts +++ b/front/src/Phaser/Login/EnableCameraScene.ts @@ -111,8 +111,10 @@ export class EnableCameraScene extends ResizableScene { this.localStreamStoreUnsubscriber = localStreamStore.subscribe((result) => { if (result.type === 'error') { - // TODO: proper handling of the error - throw result.error; + // TODO: we could handle the error in a specific way on the EnableCameraScene page. + // TODO: we could handle the error in a specific way on the EnableCameraScene page. + return; + //throw result.error; } this.getDevices();