We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc92766 commit 0a77b97Copy full SHA for 0a77b97
src/common/session.ts
@@ -64,9 +64,7 @@ export class Session extends EventEmitter<SessionEvents> {
64
}
65
66
async disconnect(): Promise<void> {
67
- const currentConnection = this.connectionManager.currentConnectionState;
68
- const atlasCluster =
69
- currentConnection.tag === "connected" ? currentConnection.connectedAtlasCluster : undefined;
+ const atlasCluster = this.connectedAtlasCluster;
70
71
try {
72
await this.connectionManager.disconnect();
0 commit comments