diff --git a/lib/fs.js b/lib/fs.js index 3f5e270b81..d2293e66a2 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -946,7 +946,9 @@ WriteStream.prototype.forceClose = function (cb) { WriteStream.prototype.destroy = function (cb) { + var self = this; this.writeable = false; + fs.close(self.fd, function(err) { if (err) { if (cb) {