diff --git a/lib/cmap/connection_pool.js b/lib/cmap/connection_pool.js index ac357b5a7c..51ab907ada 100644 --- a/lib/cmap/connection_pool.js +++ b/lib/cmap/connection_pool.js @@ -362,7 +362,7 @@ class ConnectionPool extends EventEmitter { } function ensureMinPoolSize(pool) { - if (pool.closed) { + if (pool.closed || pool.options.minPoolSize === 0) { return; }