summaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/tcp_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/tcp/tcp_timer.c')
-rw-r--r--src/vnet/tcp/tcp_timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp_timer.c b/src/vnet/tcp/tcp_timer.c
index d98d0d14b17..8ae3f22eaa6 100644
--- a/src/vnet/tcp/tcp_timer.c
+++ b/src/vnet/tcp/tcp_timer.c
@@ -20,6 +20,8 @@ void
tcp_timer_initialize_wheel (tcp_timer_wheel_t * tw,
void (*expired_timer_cb) (u32 *), f64 now)
{
+ if (tw->timers)
+ return;
tw_timer_wheel_init_tcp_twsl (tw, expired_timer_cb, TCP_TIMER_TICK, ~0);
tw->last_run_time = now;
}