Skip to content

Commit

Permalink
fix(cmap): don't run min connection thread if no minimum specified
Browse files Browse the repository at this point in the history
  • Loading branch information
millerick committed Feb 16, 2020
1 parent f8694f5 commit 2d1b713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cmap/connection_pool.js
Expand Up @@ -362,7 +362,7 @@ class ConnectionPool extends EventEmitter {
}

function ensureMinPoolSize(pool) {
if (pool.closed) {
if (pool.closed || pool.options.minPoolSize === 0) {
return;
}

Expand Down

0 comments on commit 2d1b713

Please sign in to comment.