diff --git a/lib/fs.js b/lib/fs.js index 85bfe2b630825f..8f661c14c1955f 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -1523,6 +1523,9 @@ ReadStream.prototype.open = function() { return; } + if (self.destroyed && !self.closed) + self.close() + self.fd = fd; self.emit('open', fd); // start the flow of data.