From 7015e39fa60da362d7e11e92534b61b1358535dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 17 Aug 2023 11:31:54 +0800 Subject: [PATCH] qqq --- Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Connection.php b/Connection.php index e771b85..b90a1ad 100644 --- a/Connection.php +++ b/Connection.php @@ -158,7 +158,7 @@ class Connection extends Component throw new Exception('Pool waite timeout at ' . $this->waite_time); } [$client, $time] = $data; - if ((time() - $time) < $this->idle_time || $this->canUse($client)) { + if ((time() - $time) < $this->idle_time && $this->canUse($client)) { return $client; }