This commit is contained in:
subnub
2020-05-11 00:32:05 -04:00
parent 48e57c4edb
commit 89b4f73048
+11 -3
View File
@@ -193,9 +193,17 @@ class S3Service implements ChunkInterface {
s3ReadStream.pipe(decipher);
req.on("close", () => {
console.log("Destoying read stream");
s3ReadStream.destroy();
console.log("Read Stream Destroyed");
// console.log("Destoying read stream");
// s3ReadStream.destroy();
// console.log("Read Stream Destroyed");
})
req.on("error", () => {
console.log("req error");
})
req.on("pause", () => {
console.log("req pause")
})
await awaitStreamVideo(start, end, differenceStart, decipher, res, allStreamsToErrorCatch);