From 5222c5290fc7ffe57d351e89c3488a88324f5eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 27 Apr 2021 17:44:36 +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, 2 insertions(+), 2 deletions(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 5d4ffa61..149ad96d 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -168,10 +168,10 @@ abstract class Pool extends Component if (!Context::inCoroutine()) { return $this->createClient($name, $callback); } - if ($this->_items[$name]->length() < 1) { + if ($this->_items[$name]->isEmpty()) { return $this->createByCallback($name, $callback); } - $connection = $this->_items[$name]->pop(0.01); + $connection = $this->_items[$name]->pop(); if (!$this->checkCanUse($name, $connection)) { return $this->createClient($name, $callback); } else {