Commit 3f253397 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add an iterate call when tunnel is connected so that the callback is called before going further.

parent 4a04f3ba
...@@ -2239,6 +2239,7 @@ static void _call_base_with_configfile(LinphoneMediaEncryption mode, bool_t enab ...@@ -2239,6 +2239,7 @@ static void _call_base_with_configfile(LinphoneMediaEncryption mode, bool_t enab
linphone_tunnel_set_mode(linphone_core_get_tunnel(marie->lc),LinphoneTunnelModeEnable); linphone_tunnel_set_mode(linphone_core_get_tunnel(marie->lc),LinphoneTunnelModeEnable);
for (i=0;i<100;i++) { for (i=0;i<100;i++) {
if (linphone_tunnel_connected(linphone_core_get_tunnel(marie->lc))) { if (linphone_tunnel_connected(linphone_core_get_tunnel(marie->lc))) {
break; break;
} }
linphone_core_iterate(marie->lc); linphone_core_iterate(marie->lc);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment