aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra/tw_timer_template.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra/tw_timer_template.c')
-rw-r--r--src/vppinfra/tw_timer_template.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vppinfra/tw_timer_template.c b/src/vppinfra/tw_timer_template.c
index abad3718b6f..a6d26d7991d 100644
--- a/src/vppinfra/tw_timer_template.c
+++ b/src/vppinfra/tw_timer_template.c
@@ -738,7 +738,10 @@ static inline
{
/* The callback is optional. We return the u32 * handle vector */
if (tw->expired_timer_callback)
- tw->expired_timer_callback (callback_vector);
+ {
+ tw->expired_timer_callback (callback_vector);
+ vec_reset_length (callback_vector);
+ }
tw->expired_timer_handles = callback_vector;
}