X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fmulticast-lookup.c;h=8101df5cd987aedc85efdbcf00199d4a833a06f4;hb=da75d1898a45c106a994cd87f8da5b6bcb2b6450;hp=7ae45eaf89991bcd54c5c534deeb86a66d81fc1c;hpb=730f9eb9d43de11bbb7b74280ac2ed3d92bab645;p=catta diff --git a/avahi-core/multicast-lookup.c b/avahi-core/multicast-lookup.c index 7ae45ea..8101df5 100644 --- a/avahi-core/multicast-lookup.c +++ b/avahi-core/multicast-lookup.c @@ -32,6 +32,7 @@ #include "log.h" #include "hashmap.h" #include "multicast-lookup.h" +#include "rr-util.h" struct AvahiMulticastLookup { AvahiMulticastLookupEngine *engine; @@ -113,9 +114,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;