Skip to content

Commit 17494ac

Browse files
committed
chore: This is clearer on how the behavior should look like
1 parent fe16acd commit 17494ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/atlas/connect/connectCluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,9 @@ export class ConnectClusterTool extends AtlasToolBase {
219219
break;
220220
}
221221
case "connected-to-other-cluster":
222+
await this.session.disconnect();
222223
case "disconnected":
223224
default: {
224-
await this.session.disconnect();
225225
const { connectionString, atlas } = await this.prepareClusterConnection(projectId, clusterName);
226226

227227
// try to connect for about 5 minutes asynchronously

0 commit comments

Comments
 (0)