From 63e4bbb987ba8b9948e4dbcaf21906fbea1c3702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 16 Feb 2021 23:44:37 +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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 65648121..ee25dd0c 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -127,10 +127,8 @@ abstract class Pool extends Component public function createConnect(array $config, string $coroutineName, callable $createHandler): PDO|Redis|false { if (Context::hasContext('create:connect:' . $coroutineName)) { - while (true){ - if (Context::hasContext($coroutineName)){ - break; - } + while (!($client = Context::hasContext($coroutineName))){ + var_dump($client); } return true; }