summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/_stream_readable.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js
index 43b5b43fc7..ec4c9d3631 100644
--- a/lib/_stream_readable.js
+++ b/lib/_stream_readable.js
@@ -521,11 +521,7 @@ function onEofChunk(stream, state) {
state.emittedReadable = true;
// We have to emit readable now that we are EOF. Modules
// in the ecosystem (e.g. dicer) rely on this event being sync.
- if (state.ended) {
- emitReadable_(stream);
- } else {
- process.nextTick(emitReadable_, stream);
- }
+ emitReadable_(stream);
}
}