Skip to content

Commit 075e246

Browse files
committed
Revert "prevent exit"
This reverts commit fa72a85.
1 parent f1a6206 commit 075e246

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎apps/local/src/server/mcp.ts‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,6 @@ export const runMcpStdioServer = async (config: ExecutorMcpServerConfig): Promis
9797
const server = await createExecutorMcpServer(config);
9898
const transport = new StdioServerTransport();
9999

100-
// Prevent the process from exiting while the server is running.
101-
// secure-exec-v8 and other child processes can cause the event loop
102-
// to drain prematurely when they exit, so we hold it open explicitly.
103-
const keepAlive = setInterval(() => {}, 60_000);
104-
105100
const waitForExit = () =>
106101
new Promise<void>((resolve) => {
107102
const finish = () => {
@@ -121,7 +116,6 @@ export const runMcpStdioServer = async (config: ExecutorMcpServerConfig): Promis
121116
await server.connect(transport);
122117
await waitForExit();
123118
} finally {
124-
clearInterval(keepAlive);
125119
await transport.close().catch(() => undefined);
126120
await server.close().catch(() => undefined);
127121
}

0 commit comments

Comments
 (0)