From ebada93f0d2b2ec3a158dae2ba43e98d81f3182a Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 16 Jul 2017 09:16:31 -0400 Subject: Fix potential memory leak from DownloadController.once(canceled) assigned on every .download() --- src/http-music.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/http-music.js') diff --git a/src/http-music.js b/src/http-music.js index 3f1c901..12c93e7 100755 --- a/src/http-music.js +++ b/src/http-music.js @@ -33,6 +33,10 @@ function downloadPlaylistFromOptionValue(arg) { } } +// Let this forever be of use to people who run into +// maxlistenersexceededwarning. +process.on('warning', e => console.warn(e.stack)) + Promise.resolve() .then(async () => { let sourcePlaylist = null -- cgit 1.3.0-6-gf8a5