aboutsummaryrefslogtreecommitdiffstats
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/tcp/tcp_timer.c b/src/vnet/tcp/tcp_timer.c
index 8ae3f22eaa6..4d1c0624fee 100644
--- a/src/vnet/tcp/tcp_timer.c
+++ b/src/vnet/tcp/tcp_timer.c
@@ -20,8 +20,7 @@ void
tcp_timer_initialize_wheel (tcp_timer_wheel_t * tw,
void (*expired_timer_cb) (u32 *), f64 now)
{
- if (tw->timers)
- return;
+ ASSERT (tw->timers == 0);
tw_timer_wheel_init_tcp_twsl (tw, expired_timer_cb, TCP_TIMER_TICK, ~0);
tw->last_run_time = now;
}