mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
do not try to connect tcp socket while entering in bg mode
This commit is contained in:
parent
3cb5055709
commit
b437d89aaa
1 changed files with 6 additions and 1 deletions
|
|
@ -143,7 +143,12 @@ LinphoneCoreVTable linphonec_vtable = {
|
|||
} else {
|
||||
ms_warning("keepalive handler cannot be registered");
|
||||
}
|
||||
if (mReadStream == nil) {
|
||||
LCSipTransports transportValue;
|
||||
if (linphone_core_get_sip_transports(myLinphoneCore, &transportValue)) {
|
||||
ms_error("cannot get current transport");
|
||||
}
|
||||
|
||||
if (mReadStream == nil && transportValue.udp_port>0) { //only for udp
|
||||
const char *port;
|
||||
addr=linphone_address_new(linphone_proxy_config_get_addr(proxyCfg));
|
||||
memset(&hints,0,sizeof(hints));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue