Skip to content

Commit

Permalink
Fix MetaReadable stream
Browse files Browse the repository at this point in the history
  • Loading branch information
tshemsedinov committed Dec 10, 2023
1 parent f3f72f0 commit 97d87ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/streams.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class MetaReadable extends EventEmitter {

pull() {
const data = this.queue.shift();
if (!data) return data;
this.bytesRead += data.length;
this.emit(PULL_EVENT);
return data;
Expand Down

0 comments on commit 97d87ac

Please sign in to comment.