Added missing synchronized

This commit is contained in:
Sylvain Berfini 2019-07-01 15:12:59 +02:00
parent 35a2010488
commit 0f3061c928

View file

@ -321,7 +321,7 @@ public class LinphoneContact extends AndroidContact
return mFriend; return mFriend;
} }
private void createOrUpdateFriend() { private synchronized void createOrUpdateFriend() {
boolean created = false; boolean created = false;
Core core = LinphoneManager.getCore(); Core core = LinphoneManager.getCore();
if (core == null) return; if (core == null) return;
@ -563,7 +563,7 @@ public class LinphoneContact extends AndroidContact
} }
} }
public void updateNativeContactWithPresenceInfo() { public synchronized void updateNativeContactWithPresenceInfo() {
Log.d("[Contact] Trying to update native contact with presence information"); Log.d("[Contact] Trying to update native contact with presence information");
// Creation of the raw contact with the presence information (tablet) // Creation of the raw contact with the presence information (tablet)
createRawLinphoneContactFromExistingAndroidContactIfNeeded(); createRawLinphoneContactFromExistingAndroidContactIfNeeded();