checks for millstone.drainpool only if -l flag is passed

This commit is contained in:
Daniel Bozeman 2013-09-24 15:16:17 -05:00
parent f6dea7fcb3
commit 72a79ab073

View File

@ -58,7 +58,7 @@ if (!existsSync(input)) {
function compileMML(err, data) { function compileMML(err, data) {
// force drain the millstone download pool now // force drain the millstone download pool now
// to ensure we can exit without waiting // to ensure we can exit without waiting
if (millstone.drainPool) { if (options.localize && millstone.drainPool) {
millstone.drainPool(function() {}); millstone.drainPool(function() {});
} }
if (err) { if (err) {