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