diff options
| author | haoyuren <13851610112@163.com> | 2026-03-15 13:05:24 -0500 |
|---|---|---|
| committer | haoyuren <13851610112@163.com> | 2026-03-15 13:05:24 -0500 |
| commit | 0b2431faad5271e4721fcf7f96917b1a314120b3 (patch) | |
| tree | 6e74106218d71851805d1481d9ab7b626a3bd3d0 /src/main/index.ts | |
| parent | 7acfd284aa4e5b3dfaa7a085e0aff8bd4e368375 (diff) | |
Fix crash on quit: use ptyInstances map instead of undefined ptyInstance
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/main/index.ts')
| -rw-r--r-- | src/main/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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() |
