mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
streams2: Still emit error if there was a write() cb
This commit is contained in:
@@ -175,8 +175,10 @@ function onwrite(stream, er) {
|
||||
});
|
||||
else
|
||||
cb(er);
|
||||
} else
|
||||
stream.emit('error', er);
|
||||
}
|
||||
|
||||
// backwards compatibility. still emit if there was a cb.
|
||||
stream.emit('error', er);
|
||||
return;
|
||||
}
|
||||
state.length -= l;
|
||||
|
||||
Reference in New Issue
Block a user