变更
This commit is contained in:
@@ -102,8 +102,7 @@ class PoolItem
|
|||||||
public function pop(int $waite = 10): mixed
|
public function pop(int $waite = 10): mixed
|
||||||
{
|
{
|
||||||
if ($this->_items->isEmpty() && $this->created < $this->maxCreated) {
|
if ($this->_items->isEmpty() && $this->created < $this->maxCreated) {
|
||||||
$callback = $this->callback;
|
$client = call_user_func($this->callback);
|
||||||
$client = call_user_func($callback);
|
|
||||||
|
|
||||||
$this->created += 1;
|
$this->created += 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user