From 1ad9cd46461e1052cf36d8bd098224a5bfeadeba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Feb 2021 19:27:49 +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/Pool/ObjectPool.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/System/Pool/ObjectPool.php b/System/Pool/ObjectPool.php index af4d16ed..bd007fdf 100644 --- a/System/Pool/ObjectPool.php +++ b/System/Pool/ObjectPool.php @@ -69,6 +69,9 @@ class ObjectPool extends \Snowflake\Abstracts\Pool */ public function release(string $name, mixed $object) { + if (!isset($this->_waitRecover[$name])) { + $this->_waitRecover[$name] = []; + } $this->_waitRecover[$name][] = $object; }