A couple missed tevent things.

(Sorry; had a couple changes queued.)
This commit is contained in:
Scott Lamb 2007-02-27 01:30:57 +00:00
parent 6362b12df7
commit 834290b00f
3 changed files with 6 additions and 6 deletions

View file

@ -422,14 +422,14 @@ int main_loop(void)
} }
while((event = get_expired_event())) { while((event = get_expired_tevent())) {
event->handler(event->data); event->handler(event->data);
free_event(event); free_tevent(event);
} }
if(sigalrm) { if(sigalrm) {
logger(LOG_INFO, _("Flushing event queue")); logger(LOG_INFO, _("Flushing event queue"));
flush_events(); flush_tevents();
sigalrm = false; sigalrm = false;
} }

View file

@ -526,7 +526,7 @@ bool setup_network_connections(void)
now = time(NULL); now = time(NULL);
init_events(); init_tevents();
init_connections(); init_connections();
init_subnets(); init_subnets();
init_nodes(); init_nodes();
@ -604,7 +604,7 @@ void close_network_connections(void)
exit_subnets(); exit_subnets();
exit_nodes(); exit_nodes();
exit_connections(); exit_connections();
exit_events(); exit_tevents();
execute_script("tinc-down", envp); execute_script("tinc-down", envp);

View file

@ -108,7 +108,7 @@ void free_node(node_t *n)
if(n->mtuevent) { if(n->mtuevent) {
tevent_del(n->mtuevent); tevent_del(n->mtuevent);
free_event(n->mtuevent); free_tevent(n->mtuevent);
} }
if(n->hostname) if(n->hostname)