From 0b2431faad5271e4721fcf7f96917b1a314120b3 Mon Sep 17 00:00:00 2001 From: haoyuren <13851610112@163.com> Date: Sun, 15 Mar 2026 13:05:24 -0500 Subject: Fix crash on quit: use ptyInstances map instead of undefined ptyInstance Co-Authored-By: Claude Opus 4.6 --- src/main/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index 00a0e1a..334691d 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -1407,7 +1407,8 @@ app.whenReady().then(async () => { app.on('window-all-closed', () => { mainWindow = null - ptyInstance?.kill() + for (const inst of ptyInstances.values()) inst.kill() + ptyInstances.clear() fileSyncBridge?.stop() fileSyncBridge = null overleafSock?.disconnect() -- cgit v1.2.3