From 654ac0d474feafe71b1ed06ef3819fc5a7c71f98 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 15 Mar 2021 17:11:37 -0400 Subject: [PATCH] Fix --- commands/analyze/ocr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/analyze/ocr.js b/commands/analyze/ocr.js index 73e39364..e1b3a8d4 100644 --- a/commands/analyze/ocr.js +++ b/commands/analyze/ocr.js @@ -34,7 +34,7 @@ module.exports = class OcrCommand extends Command { await worker.initialize('eng'); let timedOut = false; setTimeout(async () => { - timedOut = false; + timedOut = true; await worker.terminate(); }, 30000); const { data: { text } } = await worker.recognize(image);