| ... | @@ -641,7 +641,7 @@ async function downloadAvailableUpdate(): Promise<void> { | ... | @@ -641,7 +641,7 @@ async function downloadAvailableUpdate(): Promise<void> { |
| 641 | } | 641 | } |
| 642 | | 642 | |
| 643 | function installDownloadedUpdate(): void { | 643 | function installDownloadedUpdate(): void { |
| 644 | if (!updaterConfigured || updateState.status !== "downloaded") return; | 644 | if (isQuitting || !updaterConfigured || updateState.status !== "downloaded") return; |
| 645 | | 645 | |
| 646 | isQuitting = true; | 646 | isQuitting = true; |
| 647 | clearUpdatePollTimer(); | 647 | clearUpdatePollTimer(); |
| ... | @@ -1030,6 +1030,7 @@ function registerIpcHandlers(): void { | ... | @@ -1030,6 +1030,7 @@ function registerIpcHandlers(): void { |
| 1030 | | 1030 | |
| 1031 | ipcMain.removeHandler(UPDATE_INSTALL_CHANNEL); | 1031 | ipcMain.removeHandler(UPDATE_INSTALL_CHANNEL); |
| 1032 | ipcMain.handle(UPDATE_INSTALL_CHANNEL, async () => { | 1032 | ipcMain.handle(UPDATE_INSTALL_CHANNEL, async () => { |
| | 1033 | if (isQuitting) return; |
| 1033 | installDownloadedUpdate(); | 1034 | installDownloadedUpdate(); |
| 1034 | }); | 1035 | }); |
| 1035 | } | 1036 | } |