Skip to content
Snippets Groups Projects
Commit 7b6c6aab authored by Loïc Correnson's avatar Loïc Correnson Committed by David Bühler
Browse files

[Ivette] force emit signal in case of errors

parent 5e23a535
No related branches found
No related tags found
No related merge requests found
...@@ -304,6 +304,7 @@ class SyncState<A> { ...@@ -304,6 +304,7 @@ class SyncState<A> {
`Fail to set value of SyncState '${this.handler.name}'.`, `Fail to set value of SyncState '${this.handler.name}'.`,
`${error}`, `${error}`,
); );
this.UPDATE.emit();
} }
} }
...@@ -311,16 +312,18 @@ class SyncState<A> { ...@@ -311,16 +312,18 @@ class SyncState<A> {
try { try {
this.upToDate = true; this.upToDate = true;
this.value = undefined; this.value = undefined;
this.UPDATE.emit();
if (Server.isRunning()) { if (Server.isRunning()) {
const v = await Server.send(this.handler.getter, null); const v = await Server.send(this.handler.getter, null);
this.value = v; this.value = v;
this.UPDATE.emit();
} }
this.UPDATE.emit();
} catch (error) { } catch (error) {
D.error( D.error(
`Fail to update SyncState '${this.handler.name}'.`, `Fail to update SyncState '${this.handler.name}'.`,
`${error}`, `${error}`,
); );
this.UPDATE.emit();
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment