This commit is contained in:
2020-09-05 02:14:42 +08:00
parent 346e760614
commit 434d9a46e3
+1 -1
View File
@@ -43,7 +43,7 @@ abstract class Pool extends Component
*/ */
protected function get($name) protected function get($name)
{ {
[$timeout, $connection] = $this->_items[$name]->pop(); [$timeout, $connection] = $this->_items[$name]->pop(1);
if (!$this->checkCanUse($name, $timeout, $connection)) { if (!$this->checkCanUse($name, $timeout, $connection)) {
unset($client); unset($client);
return [0, null]; return [0, null];