Skip to content

Commit 6beeec8

Browse files
Ignore releaseBackpressure() if there are queued chunks
1 parent 0287db8 commit 6beeec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference-implementation/lib/abstract-ops/writable-streams.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ function WritableStreamDefaultControllerErrorIfNeeded(controller, error) {
659659
}
660660

661661
function WritableStreamDefaultControllerGetBackpressure(controller) {
662-
if (controller._releaseBackpressure === true) {
662+
if (controller._releaseBackpressure === true && controller._queue.length === 0) {
663663
return false;
664664
}
665665
const desiredSize = WritableStreamDefaultControllerGetDesiredSize(controller);

0 commit comments

Comments
 (0)