From cf049167267a34e140a60139b59839632fb7c18e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 24 Feb 2021 14:27:16 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Pool/ObjectPool.php b/System/Pool/ObjectPool.php index 8b76368b..ebf2acea 100644 --- a/System/Pool/ObjectPool.php +++ b/System/Pool/ObjectPool.php @@ -31,7 +31,7 @@ class ObjectPool extends \Snowflake\Abstracts\Pool { $this->max = 5000; - listen(Event::EVENT_AFTER_REQUEST, [$this, 'destruct']); + listen(Event::SYSTEM_RESOURCE_RELEASES, [$this, 'destruct']); parent::__construct($config); }