Skip to content

Commit

Permalink
listen for finish before ending the stream
Browse files Browse the repository at this point in the history
  • Loading branch information
SerayaEryn committed Sep 30, 2018
1 parent aaa587d commit 318f91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FileRotateTransport.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = class FileRotateTransport extends Transport {
}

_final (callback) {
this.stream.end()
this.stream.on('finish', callback)
this.stream.end()
}
}

0 comments on commit 318f91e

Please sign in to comment.