Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Reset expired timer vector length after callback
[vpp.git]
/
src
/
vppinfra
/
tw_timer_template.c
diff --git
a/src/vppinfra/tw_timer_template.c
b/src/vppinfra/tw_timer_template.c
index
abad371
..
a6d26d7
100644
(file)
--- 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)
{
/* 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;
}
tw->expired_timer_handles = callback_vector;
}