From 681a5834c51c2d7437eabe07b5046318587c60ac Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 31 Mar 2015 11:46:17 +0200 Subject: [PATCH] Prevent resolving the STUN server several times in parallel. --- coreapi/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/misc.c b/coreapi/misc.c index 9144b4437..9d3d76989 100644 --- a/coreapi/misc.c +++ b/coreapi/misc.c @@ -555,7 +555,7 @@ void linphone_core_resolve_stun_server(LinphoneCore *lc){ * TODO: use IPv6 resolution if linphone_core_ipv6_enabled()==TRUE and use V4Mapped addresses for ICE gathering. */ const char *server=lc->net_conf.stun_server; - if (lc->sal && server){ + if (lc->sal && server && !lc->net_conf.stun_res){ char host[NI_MAXHOST]; int port=3478; linphone_parse_host_port(server,host,sizeof(host),&port);