Skip to content

Commit

Permalink
[TEMPORARY] stream: fix onwriteError sync
Browse files Browse the repository at this point in the history
Floating fix for nodejs/node#31756
  • Loading branch information
jasnell committed Feb 12, 2020
1 parent 7a68235 commit 1c6c8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_stream_writable.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ function onwriteError(stream, state, er, cb) {
// writes.
errorBuffer(state, new ERR_STREAM_DESTROYED('write'));
// This can emit error, but error must always follow cb.
errorOrDestroy(stream, er);
errorOrDestroy(stream, er, true);
}

function onwrite(stream, er) {
Expand Down

0 comments on commit 1c6c8a7

Please sign in to comment.