Skip to content

Commit 2d1b713

Browse files
authored
fix(cmap): don't run min connection thread if no minimum specified
NODE-2459
1 parent f8694f5 commit 2d1b713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cmap/connection_pool.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ class ConnectionPool extends EventEmitter {
362362
}
363363

364364
function ensureMinPoolSize(pool) {
365-
if (pool.closed) {
365+
if (pool.closed || pool.options.minPoolSize === 0) {
366366
return;
367367
}
368368

0 commit comments

Comments
 (0)