From 30c92fc978656b78c741bf35026c9c3f7aae105b Mon Sep 17 00:00:00 2001 From: Rafael Garcia Date: Thu, 8 Jun 2023 09:19:38 +0200 Subject: [PATCH] fix: Add missing await --- src/readers/BrowserCodeReader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/readers/BrowserCodeReader.ts b/src/readers/BrowserCodeReader.ts index d9dbfd9..0a167ca 100644 --- a/src/readers/BrowserCodeReader.ts +++ b/src/readers/BrowserCodeReader.ts @@ -752,7 +752,7 @@ export class BrowserCodeReader { const stop = () => { originalControls.stop(); - switchTorch(false); + await switchTorch(false); }; controls.stop = stop;