fix tunnel compilation

This commit is contained in:
Jehan Monnier 2017-03-20 14:46:58 +01:00
parent 8da97fe4c1
commit 310f6504a4

View file

@ -5481,7 +5481,7 @@ void sip_config_uninit(LinphoneCore *lc)
/*now that we are unregisted, there is no more channel using tunnel socket we no longer need the tunnel.*/
#ifdef TUNNEL_ENABLED
if (lc->tunnel) {
linphone_tunnel_destroy(lc->tunnel);
linphone_tunnel_ref(lc->tunnel);
lc->tunnel=NULL;
ms_message("Tunnel destroyed.");
}