Throwing exceptions into store subscribers is wreaking havok

This commit is contained in:
David Négrier 2021-06-01 09:17:01 +02:00
parent 9063ba2a1f
commit 5839e0b270

View File

@ -111,8 +111,10 @@ export class EnableCameraScene extends ResizableScene {
this.localStreamStoreUnsubscriber = localStreamStore.subscribe((result) => { this.localStreamStoreUnsubscriber = localStreamStore.subscribe((result) => {
if (result.type === 'error') { if (result.type === 'error') {
// TODO: proper handling of the error // TODO: we could handle the error in a specific way on the EnableCameraScene page.
throw result.error; // TODO: we could handle the error in a specific way on the EnableCameraScene page.
return;
//throw result.error;
} }
this.getDevices(); this.getDevices();