From ec2b97b02afb023fe2770bbb8a4e864a630ca7ca Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Mon, 30 Jun 2014 09:31:45 +0200 Subject: [PATCH] Remove unneeded active wait loop --- Classes/LinphoneManager.m | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index 3d3e96add..3a5927891 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -1381,18 +1381,11 @@ static int comp_call_state_paused (const LinphoneCall* call, const void* param) //handle proxy config if any if (proxyCfg) { - if ([[LinphoneManager instance] lpConfigBoolForKey:@"backgroundmode_preference"] - || + if ([[LinphoneManager instance] lpConfigBoolForKey:@"backgroundmode_preference"] || [[LinphoneManager instance] lpConfigBoolForKey:@"pushnotification_preference"]) { //For registration register [self refreshRegisters]; - //wait for registration answer - int i=0; - while (!linphone_proxy_config_is_registered(proxyCfg) && i++<40 ) { - linphone_core_iterate(theLinphoneCore); - usleep(100000); - } } if ([[LinphoneManager instance] lpConfigBoolForKey:@"backgroundmode_preference"]) {