This commit is contained in:
2020-09-05 02:06:52 +08:00
parent b23a8242ba
commit df1f8ff74e
-3
View File
@@ -43,9 +43,6 @@ abstract class Pool extends Component
*/
protected function get($name)
{
if ($this->_items[$name]->length() < 1) {
return [0, null];
}
[$timeout, $connection] = $this->_items[$name]->pop();
if (!$this->checkCanUse($name, $timeout, $connection)) {
unset($client);