Stream now ends automatically.
This commit is contained in:
parent
b17aef0ae9
commit
0e881ea0c5
@ -221,6 +221,7 @@ export class Stream {
|
|||||||
stream.on('end', () => {
|
stream.on('end', () => {
|
||||||
if (end >= this.content_length) {
|
if (end >= this.content_length) {
|
||||||
this.timer.destroy();
|
this.timer.destroy();
|
||||||
|
this.stream.push(null);
|
||||||
this.cleanup();
|
this.cleanup();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user