diff --git a/lib/fs.js b/lib/fs.js index 7c8b38c05a..0eb4a35120 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -945,7 +945,7 @@ WriteStream.prototype.forceClose = function (cb) { }; -WriteStream.prototype.forceClose = function (cb) { +WriteStream.prototype.destroy = function (cb) { this.writeable = false; fs.close(self.fd, function(err) { if (err) {