From 9fd69f668a48ad1d02ad338a4ac45c900234d64f Mon Sep 17 00:00:00 2001 From: Felicia Hummel Date: Tue, 4 Dec 2018 23:58:18 +0100 Subject: [PATCH] Bugfix for issue #534: Catch any errors occurring during checkForUpdates() to allow App to start up even if Squirrel is not available --- terminus-core/src/services/updater.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/terminus-core/src/services/updater.service.ts b/terminus-core/src/services/updater.service.ts index 67cd5bc1..20bbb263 100644 --- a/terminus-core/src/services/updater.service.ts +++ b/terminus-core/src/services/updater.service.ts @@ -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 {