This commit is contained in:
2021-04-28 12:06:11 +08:00
parent 36b37009ca
commit 66dfa660d5
+3
View File
@@ -168,6 +168,9 @@ abstract class Pool extends Component
if (!Context::inCoroutine()) {
return $this->createClient($name, $callback);
}
if (!isset($this->_items[$name])) {
$this->_items[$name] = new Channel($this->max);
}
if ($this->_items[$name]->isEmpty()) {
$this->createByCallback($name, $callback);
}