提交 41f7345c 编写于 作者: J Joao Moreno

set state idle after failed update

上级 79f5349a
......@@ -79,6 +79,7 @@ export class UpdateManager extends events.EventEmitter {
private initRaw(): void {
this.raw.on('error', (event: any, message: string) => {
this.emit('error', event, message);
this.setState(State.Idle);
});
this.raw.on('checking-for-update', () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册