Commit 9333714b authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

proxy.c: invoking linphone_core_remove_proxy_config with a proxy not...

proxy.c: invoking linphone_core_remove_proxy_config with a proxy not registered will change registration state to LinphoneRegistrationNone before removal
parent 1d85405c
......@@ -1151,6 +1151,8 @@ void linphone_core_remove_proxy_config(LinphoneCore *lc, LinphoneProxyConfig *cf
linphone_proxy_config_enable_register(cfg,FALSE);
linphone_proxy_config_done(cfg);
linphone_proxy_config_update(cfg);
} else if (cfg->state != LinphoneRegistrationNone) {
linphone_proxy_config_set_state(cfg, LinphoneRegistrationNone,"Registration disabled");
}
linphone_proxy_config_write_all_to_config_file(lc);
}
......
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