From 71f915d9c92f66d0a8586332397c2b570bb252d8 Mon Sep 17 00:00:00 2001 From: Nima Gardideh Date: Thu, 3 Sep 2015 17:01:41 -0700 Subject: [PATCH] Fixed issue where read streams on files were never ending. --- lib/storage/file.js | 2 ++ 1 file changed, 2 insertions(+) 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(); } }