From 2a3c3eb225a8643edf10c7410bb82f413ae6f4b3 Mon Sep 17 00:00:00 2001 From: Luca Armaroli Date: Fri, 9 Oct 2020 13:33:11 +0200 Subject: [PATCH] fixed buffer maxLenght exceded on aria2c daemon --- src/destreamer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/destreamer.ts b/src/destreamer.ts index 967ce24..4218803 100644 --- a/src/destreamer.ts +++ b/src/destreamer.ts @@ -160,7 +160,7 @@ async function downloadVideo(videoGUIDs: Array, let aria2cExec: ChildProcess | undefined; let arai2cExited = false; await portfinder.getPortPromise({ port: 6800 }).then( - async port => { + async (port: number) => { logger.debug(`[DESTREAMER] Trying to use port ${port}`); // Launch aria2c aria2cExec = exec(