Browse Source

Avoid missing ref error in WriteStream.prototype.destroy().

v0.7.4-release
Tobie Langel 15 years ago
committed by Ryan Dahl
parent
commit
75f922c863
  1. 2
      lib/fs.js

2
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) {

Loading…
Cancel
Save