From 74c89c1dc9b14436c79cdf49366d3e5c19862457 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sat, 15 Jan 2011 22:20:51 +0100 Subject: [PATCH] Ensure past_request_event is initialized and registered properly. --- src/protocol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/protocol.c b/src/protocol.c index 023f969..b8b8104 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -226,6 +226,8 @@ void init_requests(void) { past_request_tree = splay_alloc_tree((splay_compare_t) past_request_compare, (splay_action_t) free_past_request); past_request_event.handler = age_past_requests; + past_request_event.time = time(NULL) + 10; + event_add(&past_request_event); } void exit_requests(void) { -- 2.25.1