This commit is contained in:
2021-08-24 15:50:04 +08:00
parent 16d8d44437
commit 2db271dab3
+4 -5
View File
@@ -65,11 +65,10 @@ class Pool extends Component
{
$name = $this->name($name, $isMaster);
if (isset(static::$_connections[$name])) {
return;
}
$value = static::$_connections[$name];
if ($value instanceof Channel || $value instanceof SplQueue) {
return;
$value = static::$_connections[$name];
if ($value instanceof Channel || $value instanceof SplQueue) {
return;
}
}
$this->newChannel($name, $max);
$this->max = $max;