mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
fix shutdown method: make sure to callback when write completed immediately
This commit is contained in:
parent
0c2baa9690
commit
29d941f0a6
@ -85,6 +85,8 @@ function shutdown(cb) {
|
||||
file.once('drain', function() {
|
||||
file.end(done);
|
||||
});
|
||||
} else {
|
||||
file.end(done);
|
||||
}
|
||||
}, cb);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user