This commit is contained in:
2023-04-05 11:32:56 +08:00
parent d8863f79a7
commit c1c3ab71ba
+1 -1
View File
@@ -101,7 +101,7 @@ class PoolItem
*/
public function pop(int $waite = 10): mixed
{
if ($this->created < $this->maxCreated) {
if ($this->_items->isEmpty() && $this->created < $this->maxCreated) {
$callback = $this->callback;
$client = $callback();