From eb931b5fd4cc21f90cf76ee292c59fa0cfb88388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 5 Apr 2023 13:55: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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kiri-engine/Pool/PoolItem.php b/kiri-engine/Pool/PoolItem.php index 91100a9c..d2f0c637 100644 --- a/kiri-engine/Pool/PoolItem.php +++ b/kiri-engine/Pool/PoolItem.php @@ -102,8 +102,7 @@ class PoolItem public function pop(int $waite = 10): mixed { if ($this->_items->isEmpty() && $this->created < $this->maxCreated) { - $callback = $this->callback; - $client = call_user_func($callback); + $client = call_user_func($this->callback); $this->created += 1;