This commit is contained in:
2021-02-23 19:27:49 +08:00
parent 38eb573945
commit 1ad9cd4646
+3
View File
@@ -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;
}