Updated uploadController.js

This commit is contained in:
Bobby Wibowo 2020-06-16 03:01:32 +07:00
parent 585331c6e5
commit a4d33c67a2
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -52,7 +52,7 @@ class ChunksData {
} }
onTimeout () { onTimeout () {
if (this.stream) if (this.stream && !this.stream.writableEnded)
this.stream.end() this.stream.end()
if (this.hasher) if (this.hasher)
this.hasher.dispose() this.hasher.dispose()