Commit 9723cbe2 authored by Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer
Browse files

Do not try to refresh register if network isnot reachable

parent 2dc90cae
......@@ -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)");
LinphoneProxyConfig *cfg=(LinphoneProxyConfig*)elem->data;
if (linphone_proxy_config_register_enabled(cfg) ) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment