Skip to content

Commit 0d64a6a

Browse files
committed
Mark suspension as not pending after an error
1 parent 0c7b81c commit 0d64a6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/EventLoop/Internal/DriverSuspension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ public function suspend(): mixed
8181

8282
/** @psalm-suppress RedundantCondition $this->pending should be changed when resumed. */
8383
if ($this->pending) {
84+
$this->pending = false;
8485
$result && $result(); // Unwrap any uncaught exceptions from the event loop
8586

8687
throw new \Error('Event loop terminated without resuming the current suspension');

0 commit comments

Comments
 (0)