Merge pull request #199 from lulurun/fix_file_appender

fix shutdown method: make sure to callback when write completed immediat...
This commit is contained in:
Gareth Jones 2014-04-22 09:58:03 +10:00
commit a549df44b4

View File

@ -85,6 +85,8 @@ function shutdown(cb) {
file.once('drain', function() {
file.end(done);
});
} else {
file.end(done);
}
}, cb);
}