Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/common/atlas/apiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ export class ApiClient {
await this.getAccessToken();
}

public async close(): Promise<void> {
if (this.accessToken) {
await this.accessToken.revokeAll();
}
}

public async getIpInfo(): Promise<{
currentIpv4Address: string;
}> {
Expand Down
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ export class Server {
}

async close(): Promise<void> {
await this.mcpServer.close();
await this.telemetry.close();
await this.session.close();
await this.mcpServer.close();
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export class Session extends EventEmitter<{

async close(): Promise<void> {
await this.disconnect();
await this.apiClient.close();
this.emit("close");
}

Expand Down
Loading