From 06c0db64373844f4ec80698ad8a886e5f6ebda8d Mon Sep 17 00:00:00 2001 From: REIS Benjamin Date: Fri, 4 Nov 2016 14:59:26 +0100 Subject: [PATCH] Do not update friendList when app launched in background --- Classes/LinphoneManager.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 1bd7f1109..ed344fc52 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1655,8 +1655,8 @@ static LinphoneCoreVTable linphonec_vtable = { linphone_core_enable_video_display(theLinphoneCore, FALSE); linphone_core_enable_video_capture(theLinphoneCore, FALSE); } - - [self enableProxyPublish:YES]; + + [self enableProxyPublish:([UIApplication sharedApplication].applicationState == UIApplicationStateActive)]; LOGI(@"Linphone [%s] started on [%s]", linphone_core_get_version(), [[UIDevice currentDevice].model UTF8String]);