Do not retransmit triggered checks if reliable transport
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Wed, 16 Apr 2014 22:49:25 +0000 (18:49 -0400)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Sat, 17 May 2014 04:22:36 +0000 (00:22 -0400)
agent/conncheck.c

index c07f2b3..c0cb307 100644 (file)
@@ -1908,7 +1908,7 @@ static gboolean priv_schedule_triggered_check (NiceAgent *agent, Stream *stream,
          nice_debug ("Agent %p : check already in progress, "
            "restarting the timer again?: %s ..", agent,
             p->timer_restarted ? "no" : "yes");
-         if (!p->timer_restarted) {
+         if (!nice_socket_is_reliable (p->sockptr) && !p->timer_restarted) {
            stun_timer_start (&p->timer, STUN_TIMER_DEFAULT_TIMEOUT,
              STUN_TIMER_DEFAULT_MAX_RETRANSMISSIONS);
            p->timer_restarted = TRUE;