Skip to content

Commit 10f5ac9

Browse files
committed
refactor(replset): ensure callback is passed through to core topo
1 parent f39e881 commit 10f5ac9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/topologies/replset.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,9 @@ class ReplSet extends TopologyBase {
381381
self.s.coreTopology.connect(_options);
382382
}
383383

384-
close(forceClosed) {
385-
super.close(forceClosed);
386-
384+
close(forceClosed, callback) {
387385
['timeout', 'error', 'close', 'joined', 'left'].forEach(e => this.removeAllListeners(e));
386+
super.close(forceClosed, callback);
388387
}
389388
}
390389

0 commit comments

Comments
 (0)