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()