From c1c3ab71ba3256c73da40b4fa1e3b3d0ebdaa792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 5 Apr 2023 11:32:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Pool/PoolItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiri-engine/Pool/PoolItem.php b/kiri-engine/Pool/PoolItem.php index b9a646cf..0d926b88 100644 --- a/kiri-engine/Pool/PoolItem.php +++ b/kiri-engine/Pool/PoolItem.php @@ -101,7 +101,7 @@ class PoolItem */ public function pop(int $waite = 10): mixed { - if ($this->created < $this->maxCreated) { + if ($this->_items->isEmpty() && $this->created < $this->maxCreated) { $callback = $this->callback; $client = $callback();