This commit is contained in:
2020-09-04 19:16:09 +08:00
parent 2c81087a72
commit 4735496b45
+2 -1
View File
@@ -54,7 +54,8 @@ abstract class Pool extends Component
} else {
$client = $this->_items[$name]->pop();
}
if (!$this->checkCanUse($name, ...$client)) {
[$timeout, $connection] = $client;
if (!$this->checkCanUse($name, $timeout, $connection)) {
unset($client);
return [0, null];
} else {