Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Jul 10, 2021
1 parent 57cfc0d commit e08ea7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/streams/end-of-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ function eos(stream, options, callback) {
} else if (
!readable &&
(!willEmitClose || isReadable(stream)) &&
writableFinished
(writableFinished || !isWritable(stream))
) {
process.nextTick(onclose);
} else if (
!writable &&
(!willEmitClose || isWritable(stream)) &&
readableFinished
(readableFinished || !isReadable(stream))
) {
process.nextTick(onclose);
} else if ((rState && stream.req && stream.aborted)) {
Expand Down

0 comments on commit e08ea7f

Please sign in to comment.