Merge pull request #535 from Drachenkaetzchen/bugfix-534

Bugfix for issue #534: Catch any errors occurring during checkForUpda…
This commit is contained in:
Eugene 2018-12-05 01:27:29 +01:00 committed by GitHub
commit 9e7721d2a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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> {