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;