diff --git a/lib/pool.py b/lib/pool.py index 9d67d68e..d5a03a70 100644 --- a/lib/pool.py +++ b/lib/pool.py @@ -102,7 +102,7 @@ class AbstractConnectionPool: if key is None: raise PoolError("trying to put unkeyed connection") - if len(self._pool) < self.minconn and not close: + if len(self._pool) < self.maxconn and not close: # Return the connection into a consistent state before putting # it back into the pool if not conn.closed: