改名
This commit is contained in:
@@ -76,11 +76,16 @@ class ObjectPool extends \Snowflake\Abstracts\Pool
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @throws ComponentException
|
||||||
|
* 清理等待回收的对象
|
||||||
|
*/
|
||||||
public function destruct()
|
public function destruct()
|
||||||
{
|
{
|
||||||
if (empty($this->_waitRecover)) {
|
if (empty($this->_waitRecover)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$this->warning('destruct object...');
|
||||||
foreach ($this->_waitRecover as $name => $value) {
|
foreach ($this->_waitRecover as $name => $value) {
|
||||||
if (empty($value)) {
|
if (empty($value)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user