proxy.c: invoking linphone_core_remove_proxy_config with a proxy not registered will change registration state to LinphoneRegistrationNone before removal

This commit is contained in:
Gautier Pelloux-Prayer 2015-11-05 11:46:12 +01:00
parent 1d85405c45
commit 9333714b9e

View file

@ -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);
}