projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0acbdba
)
Ensure past_request_event is initialized and registered properly.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 15 Jan 2011 21:20:51 +0000
(22:20 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sat, 15 Jan 2011 21:20:51 +0000
(22:20 +0100)
src/protocol.c
patch
|
blob
|
history
diff --git
a/src/protocol.c
b/src/protocol.c
index 023f9697b88c71f1a073b96de6f1a49e2aa49525..b8b8104328073b38445f3c56001c4126f78da998 100644
(file)
--- 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) {