diff --git a/lib/Innertube.js b/lib/Innertube.js index 0ba588c2..a8b7fe56 100644 --- a/lib/Innertube.js +++ b/lib/Innertube.js @@ -445,7 +445,7 @@ class Innertube { const info = await this.getInfo(video_id); underlying_stream = info.download(options); underlying_stream.pipe(stream); - }) + })(); stream.cancel = () => { underlying_stream?.cancel();