Fixed crash at startup due to race condition

This commit is contained in:
Sylvain Berfini 2018-09-06 11:59:20 +02:00
parent 32ff9d1368
commit 1f5d906c57

View file

@ -1674,8 +1674,10 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
@Override
public void onFriendListCreated(Core lc, FriendList list) {
if (LinphoneService.isReady()) {
list.setListener(ContactsManager.getInstance());
}
}
@Override
public void onFriendListRemoved(Core lc, FriendList list) {