Skip to content
Prev Previous commit
Next Next commit
streams: fix 2nd instance
  • Loading branch information
robey committed Jul 24, 2020
commit 851667e290cfdd96fd7f50becc186ab8cba7cd29
6 changes: 4 additions & 2 deletions lib/internal/stream_base_commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,10 @@ function onStreamRead(arrayBuffer) {
// test-https-truncate test.
if (handle.readStop) {
const err = handle.readStop();
if (err)
return stream.destroy(errnoException(err, 'read'));
if (err) {
stream.destroy(errnoException(err, 'read'));
return;
Comment thread
robey marked this conversation as resolved.
Outdated
}
}

// Push a null to signal the end of data.
Expand Down