diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index 456bdea36..58021e341 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -57,9 +57,11 @@ - (void)applicationDidEnterBackground:(UIApplication *)application { LOGI(@"%@", NSStringFromSelector(_cmd)); - [LinphoneManager.instance enterBackgroundMode]; - [LinphoneManager.instance.fastAddressBook clearFriends]; - [CoreManager.instance stopLinphoneCore]; + if (linphone_core_get_global_state(LC) != LinphoneGlobalOff) { + [LinphoneManager.instance enterBackgroundMode]; + [LinphoneManager.instance.fastAddressBook clearFriends]; + [CoreManager.instance stopLinphoneCore]; + } } - (void)applicationWillEnterForeground:(UIApplication *)application {