Bugfix for issue #534: Catch any errors occurring during checkForUpdates() to allow App to start up even if Squirrel is not available

This commit is contained in:
Felicia Hummel
2018-12-04 23:58:18 +01:00
parent 8800614bff
commit 9fd69f668a

View File

@@ -38,7 +38,12 @@ export class UpdaterService {
})
this.logger.debug('Checking for updates')
this.electron.autoUpdater.checkForUpdates()
try {
this.electron.autoUpdater.checkForUpdates()
} catch (e) {
this.logger.info('Squirrel updater unavailable, falling back')
}
}
async check (): Promise<boolean> {