mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Stream now ends automatically.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user