X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Fannounce.c;h=fe461de60804a4ca9fc7e9e32cb3ab23f6031d0d;hb=ae5476c763ae89cdef130397439b6746883cb1b5;hp=3374ada69839bb38b185d7e3527b0b9759bf9dd6;hpb=c0244c2448a5504581ae24e78b5859760b999b8e;p=catta diff --git a/avahi-core/announce.c b/avahi-core/announce.c index 3374ada..fe461de 100644 --- a/avahi-core/announce.c +++ b/avahi-core/announce.c @@ -158,7 +158,7 @@ static void next_state(AvahiAnnouncement *a) { else avahi_server_prepare_response(a->server, a->interface, a->entry, FALSE, FALSE); - avahi_server_generate_response(a->server, a->interface, NULL, NULL, 0, FALSE); + avahi_server_generate_response(a->server, a->interface, NULL, NULL, 0, FALSE, FALSE); if (++a->n_iteration >= 4) { /* gchar *t; */ @@ -208,7 +208,7 @@ static void go_to_initial_state(AvahiAnnouncement *a, gboolean immediately) { g_assert(a); e = a->entry; - + if ((e->flags & AVAHI_ENTRY_UNIQUE) && !(e->flags & AVAHI_ENTRY_NOPROBE)) a->state = AVAHI_PROBING; else if (!(e->flags & AVAHI_ENTRY_NOANNOUNCE)) { @@ -342,6 +342,8 @@ gboolean avahi_entry_probing(AvahiServer *s, AvahiEntry *e, AvahiInterface *i) { if (!(a = avahi_get_announcement(s, e, i))) return FALSE; + +/* avahi_log_debug("state: %i", a->state); */ return a->state == AVAHI_PROBING ||