Skip to content

Commit e1f3603

Browse files
committed
Remove global SIGINT event listener from YepCodeMcpServer
This was a bad practice causing potential memory leaks as the global process event listener wasn't properly cleaned up when the server instance was destroyed. Event listeners should be managed at the appropriate lifecycle level.
1 parent 4d96fae commit e1f3603

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/server.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ class YepCodeMcpServer extends Server {
9999
this.onerror = (error) => {
100100
this.logger.error("[MCP Error]", error);
101101
};
102-
103-
process.on("SIGINT", async () => {
104-
this.logger.info("Received SIGINT, shutting down");
105-
await this.close();
106-
process.exit(0);
107-
});
108102
}
109103

110104
private setupHandlers(): void {

0 commit comments

Comments
 (0)