summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2011-01-28 19:31:59 (GMT)
committerYouness Alaoui <youness.alaoui@collabora.co.uk>2011-02-10 00:12:36 (GMT)
commitb0605208894aee37dedb0e007830c404825ffa85 (patch)
tree68e0444967340f8d37773e93d0ca911559472a98
parentdb46bb61b862e6f207c63bf19374b468416e9705 (diff)
downloadlibnice-b0605208894aee37dedb0e007830c404825ffa85.tar.gz
libnice-b0605208894aee37dedb0e007830c404825ffa85.tar.xz
Also initialize the number of timer retransmissions
-rw-r--r--stun/usages/timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stun/usages/timer.c b/stun/usages/timer.c
index 62655b9..e5e70e6 100644
--- a/stun/usages/timer.c
+++ b/stun/usages/timer.c
@@ -104,6 +104,7 @@ void stun_timer_start (StunTimer *timer, unsigned int initial_timeout,
unsigned int max_retransmissions)
{
stun_gettime (&timer->deadline);
+ timer->retransmissions = 0;
timer->delay = initial_timeout;
timer->max_retransmissions = max_retransmissions;
add_delay (&timer->deadline, timer->delay);