diff --git a/packages/electron-updater/src/BaseUpdater.ts b/packages/electron-updater/src/BaseUpdater.ts index 5af623f5640..2c45fa6263c 100644 --- a/packages/electron-updater/src/BaseUpdater.ts +++ b/packages/electron-updater/src/BaseUpdater.ts @@ -20,8 +20,9 @@ export abstract class BaseUpdater extends AppUpdater { if (this.app.quit !== undefined) { this.app.quit() } - this.quitAndInstallCalled = false }) + } else { + this.quitAndInstallCalled = false } } @@ -136,6 +137,8 @@ export abstract class BaseUpdater extends AppUpdater { if (!this.quitAndInstallCalled) { this._logger.info("Auto install update on quit") await this.install(true, false) + } else { + this._logger.info("Update installer has already been triggered. Quitting application.") } }) }