Skip to content

Commit

Permalink
Fix bug in consumer keeping reading after pause/stop
Browse files Browse the repository at this point in the history
  • Loading branch information
albe committed Jul 15, 2018
1 parent f7d41c7 commit 8b0eb1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Consumer.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ class Consumer extends stream.Readable {
* @private
*/
_read() {
if (this.isPaused()) {
return;
}
this.start();
}
}
Expand Down

0 comments on commit 8b0eb1a

Please sign in to comment.