From efe1f6ff2ebe048fb4e860bea5d0a4a9da029b8b Mon Sep 17 00:00:00 2001 From: Stepan Mikhailiuk Date: Thu, 19 Oct 2023 09:08:40 -0700 Subject: [PATCH] Revert "fix(*): handle timeout" --- src/DownloadVideoURL.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/DownloadVideoURL.ts b/src/DownloadVideoURL.ts index 37df745..322eff3 100644 --- a/src/DownloadVideoURL.ts +++ b/src/DownloadVideoURL.ts @@ -62,11 +62,6 @@ export class DownloadVideoURL { } reject(e); }); - - this.#httpRequest.on('timeout', () => { - this.#httpRequest.destroy(); - reject(new Error(`Request to ${source} timed out`)); - }); } catch (e) { reject(e);