drain millstone pool forcefully so we can exit quickly - refs #301 and mapbox/millstone#110

This commit is contained in:
Dane Springmeyer 2013-09-23 18:55:38 -07:00
parent 4b5e217107
commit f6dea7fcb3

View File

@ -56,6 +56,11 @@ if (!existsSync(input)) {
}
function compileMML(err, data) {
// force drain the millstone download pool now
// to ensure we can exit without waiting
if (millstone.drainPool) {
millstone.drainPool(function() {});
}
if (err) {
console.error(err);
process.exit(1);