Browse Source

stop iterating over tasks if you can't read the root directory

master
ansuz 10 months ago
parent
commit
d4038344ba
1 changed files with 1 additions and 0 deletions
  1. 1
      lib/storage/tasks.js

1
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) {

Loading…
Cancel
Save