From 44c66449c5c3c004356735be2c661dfecc703a23 Mon Sep 17 00:00:00 2001 From: aymeric Date: Thu, 16 Oct 2008 16:27:48 +0000 Subject: [PATCH] Remove useless test overhead and speed discovering process git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@96 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/oRTP/src/stun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linphone/oRTP/src/stun.c b/linphone/oRTP/src/stun.c index 9e267ea95..0b7783f7d 100644 --- a/linphone/oRTP/src/stun.c +++ b/linphone/oRTP/src/stun.c @@ -2146,7 +2146,7 @@ stunNatType( StunAddress4 *dest, second_started = stunGetSystemTimeSecs(); second_elapsed = 1; - while ( count < 7 && second_elapsed < 5) + while ( count < 3 && second_elapsed < 5) { struct timeval tv; fd_set fdSet; @@ -2186,7 +2186,6 @@ stunNatType( StunAddress4 *dest, { /* timeout occured */ count++; - if ( !respTestI ) { stunSendTest( myFd1, dest, &username, &password, 1 ,verbose ); @@ -2220,6 +2219,7 @@ stunNatType( StunAddress4 *dest, stunSendTest( myFd1, &testImappedAddr, &username, &password, 11 ,verbose ); } } + } else {