Skip to content

Commit

Permalink
fix(replset): correct server leak on initial connect
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Oct 15, 2019
1 parent adc06db commit da39d1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core/topologies/replset.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ function connectNewServers(self, servers, callback) {
// Command Monitoring events
relayEvents(server, self, ['commandStarted', 'commandSucceeded', 'commandFailed']);

self.s.connectingServers.push(server);
server.connect(self.s.connectOptions);
}, i);
}
Expand Down

0 comments on commit da39d1e

Please sign in to comment.