This commit is contained in:
2021-04-27 18:41:00 +08:00
parent 6ff23d14e1
commit 2bd70dd644
2 changed files with 5 additions and 8 deletions
+2 -1
View File
@@ -192,7 +192,7 @@ abstract class Pool extends Component
$this->creates = Timer::tick(1000, [$this, 'Heartbeat_detection']);
}
if (!Context::hasContext('create::client::ing::' . $name)) {
$this->push($name, $this->createClient($name, $callback));
$this->_items[$name]->push($this->createClient($name, $callback));
Context::remove('create::client::ing::' . $name);
}
}
@@ -298,6 +298,7 @@ abstract class Pool extends Component
if (!$this->_items[$name]->isFull()) {
$this->_items[$name]->push($client);
}
$this->remove($name);
}