diff options
Diffstat (limited to 'src/cache_timer.c')
-rw-r--r-- | src/cache_timer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cache_timer.c b/src/cache_timer.c index 0fbba14..86bb8fc 100644 --- a/src/cache_timer.c +++ b/src/cache_timer.c @@ -37,14 +37,13 @@ static void timer_add(struct us_conntrack *u, void *data) struct alarm_list *alarm = data; init_alarm(alarm, u, timeout); - set_alarm_expiration(alarm, CONFIG(cache_timeout), 0); - add_alarm(alarm); + add_alarm(alarm, CONFIG(cache_timeout), 0); } static void timer_update(struct us_conntrack *u, void *data) { struct alarm_list *alarm = data; - mod_alarm(alarm, CONFIG(cache_timeout), 0); + add_alarm(alarm, CONFIG(cache_timeout), 0); } static void timer_destroy(struct us_conntrack *u, void *data) |