mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Ensure checkCount is decremented even if individual checks fail.
This commit is contained in:
@@ -63,6 +63,11 @@ exports.checkMany = function (versions) {
|
||||
|
||||
++checkCount;
|
||||
|
||||
function finish() {
|
||||
--checkCount;
|
||||
return sourcesById;
|
||||
}
|
||||
|
||||
return Promise.all(ids.map(function (id) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
var versionRequest = versionsById.get(id);
|
||||
@@ -85,10 +90,7 @@ exports.checkMany = function (versions) {
|
||||
}
|
||||
};
|
||||
});
|
||||
})).then(function () {
|
||||
--checkCount;
|
||||
return sourcesById;
|
||||
});
|
||||
})).then(finish, finish);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user