mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Do not try to refresh register if network isnot reachable
This commit is contained in:
parent
2dc90cae97
commit
9723cbe2a7
1 changed files with 6 additions and 1 deletions
|
|
@ -4179,7 +4179,12 @@ static void set_network_reachable(LinphoneCore* lc,bool_t isReachable, time_t cu
|
|||
}
|
||||
|
||||
void linphone_core_refresh_registers(LinphoneCore* lc) {
|
||||
const MSList *elem=linphone_core_get_proxy_config_list(lc);
|
||||
const MSList *elem;
|
||||
if (!lc->network_reachable) {
|
||||
ms_warning("Refresh register operation not available (network unreachable)");
|
||||
return;
|
||||
}
|
||||
elem=linphone_core_get_proxy_config_list(lc);
|
||||
for(;elem!=NULL;elem=elem->next){
|
||||
LinphoneProxyConfig *cfg=(LinphoneProxyConfig*)elem->data;
|
||||
if (linphone_proxy_config_register_enabled(cfg) ) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue