Skip to content

Commit

Permalink
Reset continuous reads in defer
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 31, 2022
1 parent 9bb5564 commit b5a09a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReadableResourceStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function read(?Cancellation $cancellation = null, ?int $limit = null): ?s
EventLoop::defer($this->resumeSuspension);
$this->suspension->suspend();
} elseif ($this->continuousReads++ === 0) {
EventLoop::queue($this->resetContinuousReads);
EventLoop::defer($this->resetContinuousReads);
}

return $data;
Expand Down

0 comments on commit b5a09a3

Please # to comment.