Browse Source

streams2: Still emit error if there was a write() cb

v0.9.4-release
isaacs 12 years ago
parent
commit
3751c0fe40
  1. 4
      lib/_stream_writable.js

4
lib/_stream_writable.js

@ -175,7 +175,9 @@ function onwrite(stream, er) {
});
else
cb(er);
} else
}
// backwards compatibility. still emit if there was a cb.
stream.emit('error', er);
return;
}

Loading…
Cancel
Save