Skip to content

Commit

Permalink
increase timeoutFrame for waiting WebCam (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonghwanKIM0101 committed Jul 23, 2022
1 parent 6efa5e1 commit 436edb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private void InitializeWebCamTexture()

private IEnumerator WaitForWebCamTexture()
{
const int timeoutFrame = 500;
const int timeoutFrame = 2000;
var count = 0;
Logger.LogVerbose("Waiting for WebCamTexture to start");
yield return new WaitUntil(() => count++ > timeoutFrame || webCamTexture.width > 16);
Expand Down

0 comments on commit 436edb0

Please sign in to comment.