diff --git a/lib/FileRotateTransport.js b/lib/FileRotateTransport.js index a9c62ce..61e21e7 100644 --- a/lib/FileRotateTransport.js +++ b/lib/FileRotateTransport.js @@ -22,7 +22,7 @@ module.exports = class FileRotateTransport extends Transport { } _final (callback) { - this.stream.end() this.stream.on('finish', callback) + this.stream.end() } }