From bda8fa86711e7db5e35cbad881e9f148be789b11 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Fri, 6 Dec 2024 19:55:56 -0600 Subject: [PATCH] Check if loop was explicitly stopped --- src/EventLoop/Internal/AbstractDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventLoop/Internal/AbstractDriver.php b/src/EventLoop/Internal/AbstractDriver.php index 6fa667a..636648f 100644 --- a/src/EventLoop/Internal/AbstractDriver.php +++ b/src/EventLoop/Internal/AbstractDriver.php @@ -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; }