forked from mirrors/linphone-iphone
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:
parent
1d85405c45
commit
9333714b9e
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue