Skip to content

Commit

Permalink
Remove race condition in WebCamInputBlock initialization (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmoebaChant authored Sep 5, 2024
1 parent 6af847a commit d7ebd14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class WebCamInputBlock extends InputBlock<ConnectionPointType.Texture> im
}

private async _loadOrUnloadWebCam(): Promise<void> {
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 (
Expand Down

0 comments on commit d7ebd14

Please sign in to comment.