From 1caceead5ddfb8994c90af1869089912f919cd01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Apr 2021 18:25:40 +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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 34665bdb..2f5bfacf 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -170,9 +170,11 @@ abstract class Pool extends Component } $channel = $this->_items[$name]; if ($channel->isEmpty()) { + return $this->createClient($name, $callback); + $this->createByCallback($name, $callback); } - $connection = $channel->pop(0.002); + return $channel->pop(0.002); if (!$this->checkCanUse($name, $connection)) { return $this->createClient($name, $callback); } else {