We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4caf38 commit 89eafdeCopy full SHA for 89eafde
1 file changed
src/sdam/topology.ts
@@ -594,7 +594,7 @@ export class Topology extends TypedEventEmitter<TopologyEvents> {
594
);
595
}
596
597
- if (!options.timeoutContext || options.timeoutContext?.clearServerSelectionTimeout) {
+ if (!options.timeoutContext || options.timeoutContext.clearServerSelectionTimeout) {
598
timeout?.clear();
599
600
@@ -668,7 +668,9 @@ export class Topology extends TypedEventEmitter<TopologyEvents> {
668
throw error;
669
} finally {
670
abortListener?.[kDispose]();
671
- if (options.timeoutContext?.clearServerSelectionTimeout) timeout?.clear();
672
+ timeout?.clear();
673
+ }
674
675
676
/**
0 commit comments