A couple missed tevent things.
(Sorry; had a couple changes queued.)
This commit is contained in:
parent
6362b12df7
commit
834290b00f
3 changed files with 6 additions and 6 deletions
|
@ -422,14 +422,14 @@ int main_loop(void)
|
|||
}
|
||||
|
||||
|
||||
while((event = get_expired_event())) {
|
||||
while((event = get_expired_tevent())) {
|
||||
event->handler(event->data);
|
||||
free_event(event);
|
||||
free_tevent(event);
|
||||
}
|
||||
|
||||
if(sigalrm) {
|
||||
logger(LOG_INFO, _("Flushing event queue"));
|
||||
flush_events();
|
||||
flush_tevents();
|
||||
sigalrm = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -526,7 +526,7 @@ bool setup_network_connections(void)
|
|||
|
||||
now = time(NULL);
|
||||
|
||||
init_events();
|
||||
init_tevents();
|
||||
init_connections();
|
||||
init_subnets();
|
||||
init_nodes();
|
||||
|
@ -604,7 +604,7 @@ void close_network_connections(void)
|
|||
exit_subnets();
|
||||
exit_nodes();
|
||||
exit_connections();
|
||||
exit_events();
|
||||
exit_tevents();
|
||||
|
||||
execute_script("tinc-down", envp);
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ void free_node(node_t *n)
|
|||
|
||||
if(n->mtuevent) {
|
||||
tevent_del(n->mtuevent);
|
||||
free_event(n->mtuevent);
|
||||
free_tevent(n->mtuevent);
|
||||
}
|
||||
|
||||
if(n->hostname)
|
||||
|
|
Loading…
Reference in a new issue