diff --git a/storage/file.js b/storage/file.js index 8ccfae079..0f97527ca 100644 --- a/storage/file.js +++ b/storage/file.js @@ -95,7 +95,7 @@ var getMetadataAtPath = function (Env, path, _cb) { return void cb("INVALID_METADATA"); } }) - .on('end', cb) + .on('close', cb) .on('error', cb); };