From 2e68a18afd40e7b48dda488962cfc239cac18811 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Wed, 7 Jan 2026 22:10:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20stopWatcherProcess?= =?UTF-8?q?=20=E5=87=BD=E6=95=B0=E7=9A=84=E9=94=99=E8=AF=AF=E5=A4=84?= =?UTF-8?q?=E7=90=86=EF=BC=8C=E7=A1=AE=E4=BF=9D=E8=BF=94=E5=9B=9E=E5=80=BC?= =?UTF-8?q?=E4=B8=80=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ccw/src/core/routes/codexlens-routes.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ccw/src/core/routes/codexlens-routes.ts b/ccw/src/core/routes/codexlens-routes.ts index e7d19d9e..c0b18d50 100644 --- a/ccw/src/core/routes/codexlens-routes.ts +++ b/ccw/src/core/routes/codexlens-routes.ts @@ -399,6 +399,8 @@ async function stopWatcherProcess( }; } catch (err: any) { return { success: false, error: err.message }; + } +} // ============================================================ // AUTO-RECOVERY ON SERVER START @@ -436,9 +438,6 @@ async function initializeWatchers(broadcastToClients: (data: unknown) => void): } } - } -} - // LEGACY STATE (Deprecated - use activeWatchers Map instead) // ============================================================