Skip to content

Commit 1122e09

Browse files
committed
chore: ensure that we return connecting when not connected yet
1 parent 6cbb1ab commit 1122e09

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
@@ -41,7 +41,7 @@ export class ConnectClusterTool extends AtlasToolBase {
4141
return "connected-to-other-cluster";
4242
}
4343

44-
if (!this.session.isConnectedToMongoDB) {
44+
if (this.session.connectionManager.currentConnectionState.tag !== "connected") {
4545
return "connecting";
4646
}
4747

0 commit comments

Comments
 (0)