From: Guus Sliepen Date: Sat, 15 Jan 2011 21:20:51 +0000 (+0100) Subject: Ensure past_request_event is initialized and registered properly. X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;ds=sidebyside;h=74c89c1dc9b14436c79cdf49366d3e5c19862457;p=tinc Ensure past_request_event is initialized and registered properly. --- diff --git a/src/protocol.c b/src/protocol.c index 023f9697..b8b81043 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) {