改名
This commit is contained in:
@@ -53,8 +53,10 @@ abstract class Pool extends Component
|
|||||||
return [0, null];
|
return [0, null];
|
||||||
}
|
}
|
||||||
[$timeout, $connection] = $this->_items[$name]->pop(30);
|
[$timeout, $connection] = $this->_items[$name]->pop(30);
|
||||||
|
if (empty($timeout) || empty($connection)) {
|
||||||
|
return [0, null];
|
||||||
|
}
|
||||||
if (!$this->checkCanUse($name, $timeout, $connection)) {
|
if (!$this->checkCanUse($name, $timeout, $connection)) {
|
||||||
unset($client);
|
|
||||||
return [0, null];
|
return [0, null];
|
||||||
} else {
|
} else {
|
||||||
return [$timeout, $connection];
|
return [$timeout, $connection];
|
||||||
|
|||||||
Reference in New Issue
Block a user