From 85310bfbff962c40189c94d93716d6eea0adddf9 Mon Sep 17 00:00:00 2001 From: Jiiks Date: Fri, 8 Mar 2019 14:00:54 +0200 Subject: [PATCH] Stop updater thread --- core/src/modules/updater.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/modules/updater.js b/core/src/modules/updater.js index f08c78fc..4c82f032 100644 --- a/core/src/modules/updater.js +++ b/core/src/modules/updater.js @@ -80,7 +80,10 @@ export default class Updater extends Module { } events(ipc) { - ipc.on('updater-startUpdate', (_, updates) => this.updateAll(updates)); + ipc.on('updater-startUpdate', (_, updates) => { + clearInterval(this.updaterThread); + this.updateAll(updates); + }); ipc.on('debug-updater-forceUpdate', () => { this.checkForUpdates(true); });