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

This commit is contained in:
Ghislain MARY 2017-01-05 10:14:59 +01:00
parent 4a04f3ba5a
commit 3f25339708

View file

@ -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);
for (i=0;i<100;i++) {
if (linphone_tunnel_connected(linphone_core_get_tunnel(marie->lc))) {
linphone_core_iterate(marie->lc);
break;
}
linphone_core_iterate(marie->lc);