This commit is contained in:
2021-03-02 18:39:25 +08:00
parent ad2b3a6d3e
commit a64c5c4f4d
+2 -2
View File
@@ -277,9 +277,9 @@ abstract class Pool extends Component
*/ */
public function clean(string $name) 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...'); // $this->warning('release ' . get_called_class() . ' pool...');
if (!isset($this->_items[$name])) { if (!Context::inCoroutine() || !isset($this->_items[$name])) {
return; return;
} }
$channel = $this->_items[$name]; $channel = $this->_items[$name];