Throwing exceptions into store subscribers is wreaking havok
This commit is contained in:
parent
9063ba2a1f
commit
5839e0b270
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user