diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index d1115125..03074a83 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -127,7 +127,7 @@ abstract class Pool extends Component public function createConnect(array $config, string $coroutineName, callable $createHandler): PDO|Redis|false { if (Context::hasContext('create:connect:' . $coroutineName)) { - while (!($client = Context::getContext($coroutineName))){ + while (($client = Context::getContext($coroutineName)) != null){ var_dump($client); } var_dump($client);