From d4038344bab245bd92ac18abd52533c3cf2fedb3 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 11 Mar 2020 16:34:00 -0400 Subject: [PATCH] stop iterating over tasks if you can't read the root directory --- lib/storage/tasks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/storage/tasks.js b/lib/storage/tasks.js index bb4dbdb9c..3c50f8ce7 100644 --- a/lib/storage/tasks.js +++ b/lib/storage/tasks.js @@ -102,6 +102,7 @@ var list = Tasks.list = function (env, cb, migration) { root: env.root, error: e, }); + w.abort(); return void cb(e); } if (list.length === 0) {