We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 337ba20 commit 8612f4aCopy full SHA for 8612f4a
lib/internal/streams/readable.js
@@ -738,6 +738,7 @@ Readable.prototype.read = function(n) {
738
739
function onEofChunk(stream, state) {
740
debug('onEofChunk');
741
+ if ((state[kState] & kEnded) !== 0) return;
742
const decoder = (state[kState] & kDecoder) !== 0 ? state[kDecoderValue] : null;
743
if (decoder) {
744
const chunk = decoder.end();
0 commit comments