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); + } }