改名
This commit is contained in:
@@ -43,6 +43,9 @@ abstract class Pool extends Component
|
|||||||
*/
|
*/
|
||||||
protected function get($name)
|
protected function get($name)
|
||||||
{
|
{
|
||||||
|
if ($this->_items[$name]->length() < 1) {
|
||||||
|
return [0, null];
|
||||||
|
}
|
||||||
[$timeout, $connection] = $this->_items[$name]->pop();
|
[$timeout, $connection] = $this->_items[$name]->pop();
|
||||||
if (!$this->checkCanUse($name, $timeout, $connection)) {
|
if (!$this->checkCanUse($name, $timeout, $connection)) {
|
||||||
unset($client);
|
unset($client);
|
||||||
|
|||||||
Reference in New Issue
Block a user