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() {
|
private IdentityKeyPair loadIdentityKeyPair() {
|
||||||
|
synchronized (mXmppConnectionService) {
|
||||||
IdentityKeyPair ownKey = mXmppConnectionService.databaseBackend.loadOwnIdentityKeyPair(account);
|
IdentityKeyPair ownKey = mXmppConnectionService.databaseBackend.loadOwnIdentityKeyPair(account);
|
||||||
|
|
||||||
if (ownKey != null) {
|
if (ownKey != null) {
|
||||||
|
@ -101,6 +102,7 @@ public class SQLiteAxolotlStore implements AxolotlStore {
|
||||||
}
|
}
|
||||||
return ownKey;
|
return ownKey;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private int loadRegistrationId() {
|
private int loadRegistrationId() {
|
||||||
return loadRegistrationId(false);
|
return loadRegistrationId(false);
|
||||||
|
|
Loading…
Reference in New Issue