]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
event: make levent_send_now() work again
authorVincent Bernat <bernat@luffy.cx>
Tue, 1 Jan 2013 13:08:39 +0000 (14:08 +0100)
committerVincent Bernat <bernat@luffy.cx>
Tue, 1 Jan 2013 13:08:39 +0000 (14:08 +0100)
src/daemon/event.c

index 89163e2e83d8f7b40bafc98c6855db07579467f7..517ca00646b0a2a84b0b7f56107f9227eb225615 100644 (file)
@@ -407,7 +407,9 @@ levent_update_and_send(evutil_socket_t fd, short what, void *arg)
 void
 levent_send_now(struct lldpd *cfg)
 {
-       event_active(cfg->g_main_loop, EV_TIMEOUT, 1);
+       struct lldpd_hardware *hardware;
+       TAILQ_FOREACH(hardware, &cfg->g_hardware, h_entries)
+               event_active(hardware->h_timer, EV_TIMEOUT, 1);
 }
 
 static void