Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Oct 16, 2023
1 parent 8512ac6 commit c691e56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/internal/streams/readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,11 @@ ObjectDefineProperties(ReadableState.prototype, {
},
set(value) {
this[kState] |= kHasPaused;
this[kState] &= ~kPaused;
if (value) {
this[kState] |= kPaused;
} else {
this[kState] &= ~kPaused;
}
},
},
});
Expand Down

0 comments on commit c691e56

Please sign in to comment.