X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fmulticast-lookup.c;h=c3afcb0094e8fd3391ae3ed15e194dfefcb6a9df;hb=59f3e8bef545762113c041a1ef5868e08b353045;hp=fa8c85951a5d0ba06289d3ff8c63a3af017ed658;hpb=6efe2615e04c6ef664fa9d49b013e261ba1e6e66;p=catta diff --git a/avahi-core/multicast-lookup.c b/avahi-core/multicast-lookup.c index fa8c859..c3afcb0 100644 --- a/avahi-core/multicast-lookup.c +++ b/avahi-core/multicast-lookup.c @@ -23,6 +23,8 @@ #include #endif +#include + #include #include @@ -114,9 +116,10 @@ AvahiMulticastLookup *avahi_multicast_lookup_new( avahi_querier_add_for_all(e->server, interface, protocol, l->key, &tv); l->queriers_added = 1; - /* add a second */ + /* Add a second */ avahi_timeval_add(&tv, 1000000); + /* Issue the ALL_FOR_NOW event one second after the querier was initially created */ l->all_for_now_event = avahi_time_event_new(e->server->time_event_queue, &tv, all_for_now_callback, l); return l;