The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 25, 10:00 UTC
Guard update install while app is quitting
- Prevent update install from running when shutdown is already in progress - Ignore install IPC calls once `isQuitting` is set to avoid duplicate install attempts
Julius Marminge committed
Mar 3, 2026 at 20:40 UTC
865d7bd6849de306932bbffabd3a06075313dbc4
1 file changed
+2
-1
apps/desktop/src/main.ts
+2
-1
@@ -641,7 +641,7 @@ async function downloadAvailableUpdate(): Promise<void> {
641
}
642
643
function installDownloadedUpdate(): void {
644
- if (!updaterConfigured || updateState.status !== "downloaded") return;
644
+ if (isQuitting || !updaterConfigured || updateState.status !== "downloaded") return;
645
646
isQuitting = true;
647
clearUpdatePollTimer();
@@ -1030,6 +1030,7 @@ function registerIpcHandlers(): void {
1030
1031
ipcMain.removeHandler(UPDATE_INSTALL_CHANNEL);
1032
ipcMain.handle(UPDATE_INSTALL_CHANNEL, async () => {
1033
+ if (isQuitting) return;
1034
installDownloadedUpdate();
1035
});
1036
}