Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup!
  • Loading branch information
himself65 committed Jul 8, 2019
commit 027dc23905030195ef091cc8d6ee0069e598a677
7 changes: 4 additions & 3 deletions lib/_stream_writable.js
Original file line number Diff line number Diff line change
Expand Up @@ -507,13 +507,14 @@ function clearBuffer(stream, state) {
let flushCallback = null;
while (entry && !doFlush) {
buffer[count] = entry;
if (!entry.isBuf)
allBuffers = false;
if (entry.isFlush) {
doFlush = true;
flushCallback = entry.callback;
} else {
length += entry.chunk.length;
}
if (!entry.isBuf)
allBuffers = false;
length += entry.chunk.length;
entry = entry.next;
count += 1;
}
Expand Down