stop iterating over tasks if you can't read the root directory
This commit is contained in:
parent
6b657c47ce
commit
d4038344ba
@ -102,6 +102,7 @@ var list = Tasks.list = function (env, cb, migration) {
|
|||||||
root: env.root,
|
root: env.root,
|
||||||
error: e,
|
error: e,
|
||||||
});
|
});
|
||||||
|
w.abort();
|
||||||
return void cb(e);
|
return void cb(e);
|
||||||
}
|
}
|
||||||
if (list.length === 0) {
|
if (list.length === 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user