Skip to content

Commit e08ea7f

Browse files
committed
fixup
1 parent 57cfc0d commit e08ea7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/streams/end-of-stream.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,13 @@ function eos(stream, options, callback) {
157157
} else if (
158158
!readable &&
159159
(!willEmitClose || isReadable(stream)) &&
160-
writableFinished
160+
(writableFinished || !isWritable(stream))
161161
) {
162162
process.nextTick(onclose);
163163
} else if (
164164
!writable &&
165165
(!willEmitClose || isWritable(stream)) &&
166-
readableFinished
166+
(readableFinished || !isReadable(stream))
167167
) {
168168
process.nextTick(onclose);
169169
} else if ((rState && stream.req && stream.aborted)) {

0 commit comments

Comments
 (0)