From 0e881ea0c5865f65b3140bd5f4058ac580649833 Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Sun, 7 Nov 2021 15:54:21 +0530 Subject: [PATCH] Stream now ends automatically. --- play-dl/YouTube/classes/LiveStream.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/play-dl/YouTube/classes/LiveStream.ts b/play-dl/YouTube/classes/LiveStream.ts index 4a6fc47..2cd3a12 100644 --- a/play-dl/YouTube/classes/LiveStream.ts +++ b/play-dl/YouTube/classes/LiveStream.ts @@ -221,6 +221,7 @@ export class Stream { stream.on('end', () => { if (end >= this.content_length) { this.timer.destroy(); + this.stream.push(null); this.cleanup(); } });