This commit is contained in:
2021-04-27 18:27:33 +08:00
parent 1caceead5d
commit 88a67ac021
2 changed files with 5 additions and 7 deletions
+1 -3
View File
@@ -170,11 +170,9 @@ abstract class Pool extends Component
}
$channel = $this->_items[$name];
if ($channel->isEmpty()) {
return $this->createClient($name, $callback);
$this->createByCallback($name, $callback);
}
return $channel->pop(0.002);
$connection = $channel->pop(0.002);
if (!$this->checkCanUse($name, $connection)) {
return $this->createClient($name, $callback);
} else {