From d7ebd141392d8711485a8a9f71656a91a9020cf6 Mon Sep 17 00:00:00 2001 From: AmoebaChant <10319625+AmoebaChant@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:49:50 -0700 Subject: [PATCH] Remove race condition in WebCamInputBlock initialization (#35) --- .../demo/src/configuration/blocks/inputs/webCamInputBlock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/demo/src/configuration/blocks/inputs/webCamInputBlock.ts b/packages/demo/src/configuration/blocks/inputs/webCamInputBlock.ts index cb41a735..de75a8b6 100644 --- a/packages/demo/src/configuration/blocks/inputs/webCamInputBlock.ts +++ b/packages/demo/src/configuration/blocks/inputs/webCamInputBlock.ts @@ -58,7 +58,7 @@ export class WebCamInputBlock extends InputBlock im } private async _loadOrUnloadWebCam(): Promise { - const shouldBeLoaded = this._webCamSource !== undefined && this.output.endpoints.length > 0; + const shouldBeLoaded = this._webCamSource !== undefined; // && this.output.endpoints.length > 0; const currentWebCamSourceId = this._webCamSource?.id; if (