🎥 Make videos programmatically with React
fix bug where another browser could be launched due to a race condition
Jonny Burgerc78f3a0020bf
diff --git a/packages/lambda/src/functions/helpers/get-browser-instance.ts b/packages/lambda/src/functions/helpers/get-browser-instance.tsindex 7fb83a3944..7d83f29f50 100644--- a/packages/lambda/src/functions/helpers/get-browser-instance.ts+++ b/packages/lambda/src/functions/helpers/get-browser-instance.ts@@ -32,9 +32,9 @@ const waitForLaunched = () => {const check = () =>setTimeout(() => {if (launching) {- resolve();- } else {check();+ } else {+ resolve();}}, 16);