drain millstone pool forcefully so we can exit quickly - refs #301 and mapbox/millstone#110
This commit is contained in:
parent
4b5e217107
commit
f6dea7fcb3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user