Skip to content

Commit d22c00e

Browse files
committed
JAVA-373: Connector does not get started in one of the constructor, so replica set thread is not activated
1 parent 09cc32d commit d22c00e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/com/mongodb/Mongo.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ public Mongo( List<ServerAddress> replicaSetSeeds , MongoOptions options )
264264
_options = options;
265265
_applyMongoOptions();
266266
_connector = new DBTCPConnector( this , _addrs );
267+
_connector.start();
267268

268269
_cleaner = new DBCleanerThread();
269270
_cleaner.start();

0 commit comments

Comments
 (0)