From a4d33c67a20ef3b31161fc7086a88486adbfad88 Mon Sep 17 00:00:00 2001 From: Bobby Wibowo Date: Tue, 16 Jun 2020 03:01:32 +0700 Subject: [PATCH] Updated uploadController.js --- controllers/uploadController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/uploadController.js b/controllers/uploadController.js index 0cb9e00..298edcd 100644 --- a/controllers/uploadController.js +++ b/controllers/uploadController.js @@ -52,7 +52,7 @@ class ChunksData { } onTimeout () { - if (this.stream) + if (this.stream && !this.stream.writableEnded) this.stream.end() if (this.hasher) this.hasher.dispose()