File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,12 @@ export class ApiClient {
9595 await this . getAccessToken ( ) ;
9696 }
9797
98+ public async close ( ) : Promise < void > {
99+ if ( this . accessToken ) {
100+ await this . accessToken . revokeAll ( ) ;
101+ }
102+ }
103+
98104 public async getIpInfo ( ) : Promise < {
99105 currentIpv4Address : string ;
100106 } > {
Original file line number Diff line number Diff line change @@ -101,9 +101,9 @@ export class Server {
101101 }
102102
103103 async close ( ) : Promise < void > {
104+ await this . mcpServer . close ( ) ;
104105 await this . telemetry . close ( ) ;
105106 await this . session . close ( ) ;
106- await this . mcpServer . close ( ) ;
107107 }
108108
109109 /**
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ export class Session extends EventEmitter<{
9393
9494 async close ( ) : Promise < void > {
9595 await this . disconnect ( ) ;
96+ await this . apiClient . close ( ) ;
9697 this . emit ( "close" ) ;
9798 }
9899
You can’t perform that action at this time.
0 commit comments