改名
This commit is contained in:
@@ -65,12 +65,11 @@ class Pool extends Component
|
|||||||
{
|
{
|
||||||
$name = $this->name($name, $isMaster);
|
$name = $this->name($name, $isMaster);
|
||||||
if (isset(static::$_connections[$name])) {
|
if (isset(static::$_connections[$name])) {
|
||||||
return;
|
|
||||||
}
|
|
||||||
$value = static::$_connections[$name];
|
$value = static::$_connections[$name];
|
||||||
if ($value instanceof Channel || $value instanceof SplQueue) {
|
if ($value instanceof Channel || $value instanceof SplQueue) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
$this->newChannel($name, $max);
|
$this->newChannel($name, $max);
|
||||||
$this->max = $max;
|
$this->max = $max;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user