Fix synchronization when initializing user storage

This commit is contained in:
Kai S. K. Engelbart 2020-09-22 16:06:19 +02:00
parent 1b60ab3f0d
commit 5b4f2762e5
Signed by: kske
GPG Key ID: 8BEB13EC5DF7EF13
1 changed files with 8 additions and 1 deletions

View File

@ -133,8 +133,9 @@ public final class LocalDB implements EventListener {
chats = (List<Chat>) in.readObject();
cacheMap = (CacheMap) in.readObject();
lastSync = (Instant) in.readObject();
} finally {
synchronize();
}
synchronize();
}
/**
@ -188,6 +189,12 @@ public final class LocalDB implements EventListener {
}
}
/**
* Stores a new authentication token.
*
* @param evt the event containing the authentication token
* @since Envoy Client v0.2-beta
*/
@Event
private void onNewAuthToken(NewAuthToken evt) { authToken = evt.get(); }