Nodes use events, so event system should be initialised first and destroyed last.

This commit is contained in:
Guus Sliepen 2006-11-11 22:44:15 +00:00
parent 35e4096120
commit 0714ac6c59
5 changed files with 14 additions and 12 deletions

View file

@ -101,7 +101,7 @@ void send_mtu_probe(node_t *n)
send_udppacket(n, &packet);
}
n->mtuevent = xmalloc(sizeof(*n->mtuevent));
n->mtuevent = new_event();
n->mtuevent->handler = (event_handler_t)send_mtu_probe;
n->mtuevent->data = n;
n->mtuevent->time = now + 1;