From 3a0c5f6d70fc29921852590b26ae270f3878e44c Mon Sep 17 00:00:00 2001 From: xl Date: Fri, 15 Nov 2024 14:30:18 +0800 Subject: [PATCH] eee --- kiri-engine/Coordinator.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/kiri-engine/Coordinator.php b/kiri-engine/Coordinator.php index ca285fd5..91ac2add 100644 --- a/kiri-engine/Coordinator.php +++ b/kiri-engine/Coordinator.php @@ -17,10 +17,9 @@ class Coordinator */ public function yield(): void { - if ($this->waite === false) { - return; - } - $this->yield(); + while ($this->waite) { + usleep(1000); + } }