This commit is contained in:
2021-03-02 14:57:33 +08:00
parent f7e1ac1c63
commit 702b204e40
2 changed files with 4 additions and 6 deletions
+4 -4
View File
@@ -272,11 +272,11 @@ abstract class Pool extends Component
*/
public function clean(string $name)
{
Timer::clear($this->creates);
if (!Context::inCoroutine()) {
return;
var_dump($name);
if (Timer::exists($this->creates)) {
Timer::clear($this->creates);
}
if (!isset($this->_items[$name])) {
if (!Context::inCoroutine() || !isset($this->_items[$name])) {
return;
}
$channel = $this->_items[$name];