From b7fbde0e63ef4fa45604cb8bc0b922f3e78d742f Mon Sep 17 00:00:00 2001 From: Chrystian Huot Date: Wed, 20 May 2020 13:34:12 -0400 Subject: [PATCH] Fix the missing async in setTimeout callback --- server/lib/rdio-scanner/dir-watch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/lib/rdio-scanner/dir-watch.js b/server/lib/rdio-scanner/dir-watch.js index 934aed1..28e215f 100644 --- a/server/lib/rdio-scanner/dir-watch.js +++ b/server/lib/rdio-scanner/dir-watch.js @@ -90,7 +90,7 @@ class DirWatch { switch (dirWatch.type) { case 'trunk-recorder': { - setTimeout(() => { + setTimeout(async () => { const metaFile = path.resolve(file.dir, `${file.name}.json`); if (!fs.existsSync(metaFile)) { @@ -123,7 +123,7 @@ class DirWatch { } case 'sdrtrunk': { - setTimeout(() => { + setTimeout(async () => { const metaFile = path.resolve(file.dir, `${file.name}.mbe`); if (!fs.existsSync(metaFile)) {