Skip to content

Commit

Permalink
Check if loop was explicitly stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Dec 7, 2024
1 parent 84ab0d0 commit bda8fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventLoop/Internal/AbstractDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function __construct()
}

$result = $this->fiber->isStarted() ? $this->fiber->resume() : $this->fiber->start();
if ($result) {
if ($result) { // Null indicates the loop fiber terminated without suspending.
return $result;
}

Expand Down

0 comments on commit bda8fa8

Please sign in to comment.