diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2011-01-28 19:31:59 +0000 |
---|---|---|
committer | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2011-02-09 19:12:36 -0500 |
commit | b0605208894aee37dedb0e007830c404825ffa85 (patch) | |
tree | 68e0444967340f8d37773e93d0ca911559472a98 /stun | |
parent | db46bb61b862e6f207c63bf19374b468416e9705 (diff) | |
download | libnice-b0605208894aee37dedb0e007830c404825ffa85.tar.gz |
Also initialize the number of timer retransmissions
Diffstat (limited to 'stun')
-rw-r--r-- | stun/usages/timer.c | 1 |
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); |