diff --git a/commands/analyze/ocr.js b/commands/analyze/ocr.js index 05c51c75..86165cd0 100644 --- a/commands/analyze/ocr.js +++ b/commands/analyze/ocr.js @@ -33,9 +33,7 @@ module.exports = class OcrCommand extends Command { await worker.loadLanguage('eng'); await worker.initialize('eng'); let timedOut = false; - let finished = false; const timeout = setTimeout(async () => { - if (finished) return; timedOut = true; await worker.terminate(); await reactIfAble(msg, msg.author, FAILURE_EMOJI_ID, '❌');