synchronize around identity key generation
This commit is contained in:
parent
b478eca315
commit
afa3883089
|
@ -90,6 +90,7 @@ public class SQLiteAxolotlStore implements AxolotlStore {
|
|||
// --------------------------------------
|
||||
|
||||
private IdentityKeyPair loadIdentityKeyPair() {
|
||||
synchronized (mXmppConnectionService) {
|
||||
IdentityKeyPair ownKey = mXmppConnectionService.databaseBackend.loadOwnIdentityKeyPair(account);
|
||||
|
||||
if (ownKey != null) {
|
||||
|
@ -101,6 +102,7 @@ public class SQLiteAxolotlStore implements AxolotlStore {
|
|||
}
|
||||
return ownKey;
|
||||
}
|
||||
}
|
||||
|
||||
private int loadRegistrationId() {
|
||||
return loadRegistrationId(false);
|
||||
|
|
Loading…
Reference in a new issue