Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

mcp-oauth: iterate the listeners directly, as lint asks (#5946)

milind-sonid5e6ee167d3e
diff --git a/server/mcp-oauth.ts b/server/mcp-oauth.ts
index d52ca5269f..1fd75a9999 100644
--- a/server/mcp-oauth.ts
+++ b/server/mcp-oauth.ts
@@ -409,7 +409,7 @@ export class McpOAuthManager {
for (const pending of this.starting.values()) pending.cancelled = true;
for (const flow of this.flows.values()) this.finish(flow, "cancelled", "Sign-in cancelled.");
this.flows.clear();
- for (const opening of [...this.listeners.values()]) {
+ for (const opening of this.listeners.values()) {
void opening.then((listener) => {
listener.server.close();
listener.server.closeIdleConnections();