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); }