modify
This commit is contained in:
@@ -175,7 +175,7 @@ abstract class Pool extends Component
|
|||||||
if (!$this->hasItem($name)) {
|
if (!$this->hasItem($name)) {
|
||||||
$this->createByCallback($name, $callback);
|
$this->createByCallback($name, $callback);
|
||||||
}
|
}
|
||||||
$connection = $this->_items[$name]->pop(-1);
|
$connection = $this->_items[$name]->pop(0.01);
|
||||||
if (!$this->checkCanUse($name, $connection)) {
|
if (!$this->checkCanUse($name, $connection)) {
|
||||||
return $this->createClient($name, $callback);
|
return $this->createClient($name, $callback);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user