Remove unneeded active wait loop

This commit is contained in:
Guillaume BIENKOWSKI 2014-06-30 09:31:45 +02:00
parent 1a7c27e609
commit ec2b97b02a

View file

@ -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"]) {