mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-09 03:22:40 +00:00
fix: avoid mcp shutdown response snapshot allocation
This commit is contained in:
@@ -159,7 +159,7 @@ export async function startMcpLoopbackServer(port = 0): Promise<{
|
||||
};
|
||||
|
||||
const closeActiveSseResponses = (): void => {
|
||||
for (const res of [...activeSseResponses]) {
|
||||
for (const res of activeSseResponses) {
|
||||
if (!res.destroyed && !res.writableEnded) {
|
||||
const socket = res.socket;
|
||||
res.end();
|
||||
|
||||
Reference in New Issue
Block a user