From 08d86fd3887a0bcd90c62def4164965fe836f2e0 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 6 Dec 2024 19:55:09 +0100 Subject: [PATCH] Change approach --- 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 ded274f..7a0382a 100644 --- a/src/EventLoop/Internal/AbstractDriver.php +++ b/src/EventLoop/Internal/AbstractDriver.php @@ -558,7 +558,7 @@ private function createLoopFiber(): void $this->idle = true; $this->tick($previousIdle); - $didWork = $this->invokeCallbacks(); + $didWork = $this->invokeCallbacks() || $didWork; } return $didWork;