diff --git a/src/Swoole/PgSQL/ConnectionPool.php b/src/Swoole/PgSQL/ConnectionPool.php index 4323ceb..ee914c9 100644 --- a/src/Swoole/PgSQL/ConnectionPool.php +++ b/src/Swoole/PgSQL/ConnectionPool.php @@ -135,7 +135,7 @@ private function make() : void if (! $this->map || ! $this->pool) { return; } - if ($this->pool->capacity === $this->capacity()) { + if ($this->pool->capacity <= $this->capacity()) { return; } try {