We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58027f3 commit 29f0dbeCopy full SHA for 29f0dbe
CHANGELOG.md
@@ -4,6 +4,7 @@
4
5
* `newFilename` should be overriden in subclass so it is no argument for
6
constructor anymore.
7
+* `_final` calls rather `stream.end` than `close` because of callback.
8
9
## v1.2.0 2018-09-12
10
src/file-timestamp-stream.ts
@@ -75,9 +75,10 @@ export class FileTimestampStream extends Writable {
75
76
_final (callback: (error?: Error | null) => void): void {
77
if (this.stream) {
78
- this.stream.close()
+ this.stream.end(callback)
79
+ } else {
80
+ callback()
81
}
- callback()
82
83
84
_destroy (error: Error | null, callback: (error: Error | null) => void): void {
0 commit comments