diff options
author | Matteo Collina <hello@matteocollina.com> | 2019-02-11 13:20:26 +0100 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2019-03-27 22:16:24 +0100 |
commit | 0b2f900c9ab5d230eed453bd3541789b0eb5106a (patch) | |
tree | 0d79a0bf9d122f8af63a788e8ab5c57ce77d05c5 /lib/_stream_transform.js | |
parent | 119f83bb44665816a7d2e434988d36e4613c4dd8 (diff) | |
download | node-new-0b2f900c9ab5d230eed453bd3541789b0eb5106a.tar.gz |
stream: make sure 'readable' is emitted before ending the stream
Fixes: https://github.com/nodejs/node/issues/25810
PR-URL: https://github.com/nodejs/node/pull/26059
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'lib/_stream_transform.js')
-rw-r--r-- | lib/_stream_transform.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/_stream_transform.js b/lib/_stream_transform.js index 0b4f845e4c..7393dddbab 100644 --- a/lib/_stream_transform.js +++ b/lib/_stream_transform.js @@ -116,9 +116,6 @@ function Transform(options) { writeencoding: null }; - // Start out asking for a readable event once data is transformed. - this._readableState.needReadable = true; - // We have implemented the _read method, and done the other things // that Readable wants before the first _read call, so unset the // sync guard flag. |