From a78280af2988691e58e3531c90a4af862f6264ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Feb 2021 19:30:50 +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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/System/Pool/ObjectPool.php b/System/Pool/ObjectPool.php index bd007fdf..acc9bd0a 100644 --- a/System/Pool/ObjectPool.php +++ b/System/Pool/ObjectPool.php @@ -76,11 +76,16 @@ class ObjectPool extends \Snowflake\Abstracts\Pool } + /** + * @throws ComponentException + * 清理等待回收的对象 + */ public function destruct() { if (empty($this->_waitRecover)) { return; } + $this->warning('destruct object...'); foreach ($this->_waitRecover as $name => $value) { if (empty($value)) { continue;