Stop updater thread

This commit is contained in:
Jiiks 2019-03-08 14:00:54 +02:00
parent d1d79a37b7
commit 85310bfbff
1 changed files with 4 additions and 1 deletions

View File

@ -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);
});