mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
TunnelManager.cc: invoke sal_set_tunnel when destroying tunnel
This commit is contained in:
parent
3df8f6f3d2
commit
30e504c263
1 changed files with 3 additions and 1 deletions
|
|
@ -165,6 +165,7 @@ TunnelManager::~TunnelManager(){
|
|||
udpMirror->stop();
|
||||
}
|
||||
if(mTunnelClient) delete mTunnelClient;
|
||||
sal_set_tunnel(mCore->sal,NULL);
|
||||
linphone_core_remove_listener(mCore, mVTable);
|
||||
linphone_core_v_table_destroy(mVTable);
|
||||
}
|
||||
|
|
@ -197,7 +198,7 @@ void TunnelManager::processTunnelEvent(const Event &ev){
|
|||
_linphone_core_apply_transports(mCore);
|
||||
doRegistration();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
} else {
|
||||
ms_error("TunnelManager: tunnel has been disconnected");
|
||||
|
|
@ -336,6 +337,7 @@ void TunnelManager::processUdpMirrorEvent(const Event &ev){
|
|||
ms_message("TunnelManager: UDP mirror test succeed");
|
||||
if(mTunnelClient) {
|
||||
if(mTunnelizeSipPackets) doUnregistration();
|
||||
sal_set_tunnel(mCore->sal,NULL);
|
||||
delete mTunnelClient;
|
||||
mTunnelClient = NULL;
|
||||
if(mTunnelizeSipPackets) doRegistration();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue