改名
This commit is contained in:
@@ -176,16 +176,14 @@ abstract class Pool extends Component
|
|||||||
if (!((static::$_items[$name] ?? null) instanceof Channel)) {
|
if (!((static::$_items[$name] ?? null) instanceof Channel)) {
|
||||||
static::$_items[$name] = $channel;
|
static::$_items[$name] = $channel;
|
||||||
}
|
}
|
||||||
if ($channel->isEmpty()) {
|
if (!$channel->isEmpty()) {
|
||||||
return $this->createClient($name, $callback);
|
|
||||||
}
|
|
||||||
$connection = $channel->pop();
|
$connection = $channel->pop();
|
||||||
if (!$this->checkCanUse($name, $connection)) {
|
if ($this->checkCanUse($name, $connection)) {
|
||||||
return $this->createClient($name, $callback);
|
|
||||||
} else {
|
|
||||||
return $connection;
|
return $connection;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return $this->createClient($name, $callback);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user