Fix the missing async in setTimeout callback

This commit is contained in:
Chrystian Huot 2020-05-20 13:34:12 -04:00
parent ed16727ce7
commit b7fbde0e63

View file

@ -90,7 +90,7 @@ class DirWatch {
switch (dirWatch.type) { switch (dirWatch.type) {
case 'trunk-recorder': { case 'trunk-recorder': {
setTimeout(() => { setTimeout(async () => {
const metaFile = path.resolve(file.dir, `${file.name}.json`); const metaFile = path.resolve(file.dir, `${file.name}.json`);
if (!fs.existsSync(metaFile)) { if (!fs.existsSync(metaFile)) {
@ -123,7 +123,7 @@ class DirWatch {
} }
case 'sdrtrunk': { case 'sdrtrunk': {
setTimeout(() => { setTimeout(async () => {
const metaFile = path.resolve(file.dir, `${file.name}.mbe`); const metaFile = path.resolve(file.dir, `${file.name}.mbe`);
if (!fs.existsSync(metaFile)) { if (!fs.existsSync(metaFile)) {