From 48e57c4edb37310b9a87fb882c34bc07dbf890fb Mon Sep 17 00:00:00 2001 From: subnub Date: Mon, 11 May 2020 00:29:09 -0400 Subject: [PATCH] test --- backend/services/ChunkService/FileSystemService.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/backend/services/ChunkService/FileSystemService.ts b/backend/services/ChunkService/FileSystemService.ts index 7ecf86a..284fee9 100644 --- a/backend/services/ChunkService/FileSystemService.ts +++ b/backend/services/ChunkService/FileSystemService.ts @@ -257,11 +257,19 @@ class FileSystemService implements ChunkInterface { readStream.pipe(decipher); req.on("close", () => { - console.log("Destroying read stream"); - readStream.destroy(); - console.log("Read Stream Destoryed"); + // console.log("Destroying read stream"); + // readStream.destroy(); + // console.log("Read Stream Destoryed"); + }) + + req.on("error", () => { + console.log("req error"); }) + req.on("pause", () => { + console.log("req pause") + }) + await awaitStreamVideo(start, end, differenceStart, decipher, res, allStreamsToErrorCatch); }