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; }