This commit is contained in:
subnub
2020-05-11 00:38:05 -04:00
parent 45837b6c16
commit 09f8b782c3
+6 -2
View File
@@ -192,14 +192,18 @@ class S3Service implements ChunkInterface {
s3ReadStream.pipe(decipher);
s3ReadStream.destroy();
req.on("close", () => {
// console.log("Destoying read stream");
// s3ReadStream.destroy();
// console.log("Read Stream Destroyed");
})
req.on("end", () => {
console.log("ending stream");
s3ReadStream.destroy();
console.log("ended stream")
})
req.on("error", () => {
console.log("req error");
})