From ce60e0eb8cd5e799940d576968762bddde634a28 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Mon, 22 Nov 2021 17:47:56 +0100 Subject: [PATCH] fix: Rearrange argument for setTimeout call (#542) --- lib/basedriver/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/basedriver/helpers.js b/lib/basedriver/helpers.js index 0fa804e93..99662fbbe 100644 --- a/lib/basedriver/helpers.js +++ b/lib/basedriver/helpers.js @@ -21,7 +21,7 @@ const APPLICATIONS_CACHE = new LRU({ dispose: (app, {fullPath}) => { logger.info(`The application '${app}' cached at '${fullPath}' has ` + `expired after ${CACHED_APPS_MAX_AGE}ms`); - setTimeout(0, async () => { + setTimeout(async () => { if (fullPath && await fs.exists(fullPath)) { await fs.rimraf(fullPath); }