Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit d92efec

Browse files
committed
fix(server): correct minor typo in porting 2.x patch
1 parent 0cbe95f commit d92efec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/topologies/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ function disconnectHandler(self, type, ns, cmd, options, callback) {
270270
!self.s.pool.isConnected() &&
271271
self.s.options.reconnect &&
272272
self.s.disconnectHandler != null &&
273-
options.monitoring
273+
!options.monitoring
274274
) {
275275
self.s.disconnectHandler.add(type, ns, cmd, options, callback);
276276
return true;

0 commit comments

Comments
 (0)