From e357c0297856e468d03ab0c235250be2c672777e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 16 Aug 2023 16:43:24 +0800 Subject: [PATCH] qqq --- PoolItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PoolItem.php b/PoolItem.php index 00af038..c73d5d6 100644 --- a/PoolItem.php +++ b/PoolItem.php @@ -141,7 +141,7 @@ class PoolItem */ public function pop(int $waite = 10): mixed { - if ($this->_items->isEmpty() && $this->created >= $this->maxCreated) { + if ($this->_items->isEmpty() && $this->created < $this->maxCreated) { $this->created += 1; return call_user_func($this->callback); } else {