Fix synchronization when initializing user storage
This commit is contained in:
parent
1b60ab3f0d
commit
5b4f2762e5
@ -133,8 +133,9 @@ public final class LocalDB implements EventListener {
|
|||||||
chats = (List<Chat>) in.readObject();
|
chats = (List<Chat>) in.readObject();
|
||||||
cacheMap = (CacheMap) in.readObject();
|
cacheMap = (CacheMap) in.readObject();
|
||||||
lastSync = (Instant) 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
|
@Event
|
||||||
private void onNewAuthToken(NewAuthToken evt) { authToken = evt.get(); }
|
private void onNewAuthToken(NewAuthToken evt) { authToken = evt.get(); }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user