diff --git a/lib/storage/file.js b/lib/storage/file.js index cecb109af6c..e236f35587a 100644 --- a/lib/storage/file.js +++ b/lib/storage/file.js @@ -537,6 +537,8 @@ File.prototype.createReadStream = function(options) { mismatchError.code = 'CONTENT_DOWNLOAD_MISMATCH'; throughStream.destroy(mismatchError); + } else { + throughStream.end(); } }