From 4f9bcf77bceb17daea23a6fd1f0bf17d232c0b27 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Wed, 20 Sep 2017 19:35:50 +0200 Subject: [PATCH] Made canary auto updates work (#2235) --- app/auto-updater.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/auto-updater.js b/app/auto-updater.js index beeb84c2..846d1cf9 100644 --- a/app/auto-updater.js +++ b/app/auto-updater.js @@ -12,13 +12,13 @@ const {platform} = process; let isInit = false; -function init() { +async function init() { autoUpdater.on('error', (err, msg) => { console.error('Error fetching updates', msg + ' (' + err.stack + ')'); }); - const config = retry(() => { - const content = getConfig(); + const config = await retry(async () => { + const content = await getConfig(); if (!content) { throw new Error('No config content loaded');