diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index a0173cc1..f23daa76 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -277,9 +277,9 @@ abstract class Pool extends Component */ public function clean(string $name) { - var_dump(Timer::clear($this->creates)); + var_dump($name, Timer::clear($this->creates)); // $this->warning('release ' . get_called_class() . ' pool...'); - if (!isset($this->_items[$name])) { + if (!Context::inCoroutine() || !isset($this->_items[$name])) { return; } $channel = $this->_items[$name];