Stop updater thread
This commit is contained in:
parent
d1d79a37b7
commit
85310bfbff
|
@ -80,7 +80,10 @@ export default class Updater extends Module {
|
||||||
}
|
}
|
||||||
|
|
||||||
events(ipc) {
|
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', () => {
|
ipc.on('debug-updater-forceUpdate', () => {
|
||||||
this.checkForUpdates(true);
|
this.checkForUpdates(true);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue