From 4735496b451f71e2a7b9d8c6bd013c5470db89f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 4 Sep 2020 19:16:09 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 7b36ea07..2a5da9f5 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -54,7 +54,8 @@ abstract class Pool extends Component } else { $client = $this->_items[$name]->pop(); } - if (!$this->checkCanUse($name, ...$client)) { + [$timeout, $connection] = $client; + if (!$this->checkCanUse($name, $timeout, $connection)) { unset($client); return [0, null]; } else {