File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -1317,15 +1317,13 @@ export class McpHub {
13171317 const allServers = this . getAllServers ( )
13181318
13191319 // Set the Disabled flag for all servers
1320- await Promise . all (
1321- allServers . map ( async ( server ) => {
1322- await this . updateServerConfig ( server . name , { disabled } , server . source )
1323- const conn = this . findConnection ( server . name , server . source )
1324- if ( conn ) {
1325- conn . server . disabled = disabled
1326- }
1327- } ) ,
1328- )
1320+ for ( const server of allServers ) {
1321+ await this . updateServerConfig ( server . name , { disabled } , server . source )
1322+ const conn = this . findConnection ( server . name , server . source )
1323+ if ( conn ) {
1324+ conn . server . disabled = disabled
1325+ }
1326+ }
13291327
13301328 // If activated, reload configuration
13311329 if ( ! disabled ) {
You can’t perform that action at this time.
0 commit comments