From 3877b0fb2927ada6d3e870557bdf53047907fe99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 17 Feb 2021 00:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Abstracts/Pool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);