From 1dc1c4fc744d3885c9ffd9bca41536c83323cb21 Mon Sep 17 00:00:00 2001 From: Federico Lucifredi Date: Fri, 26 Oct 2007 05:36:46 +0000 Subject: decided to remove records from wide-pub when goodbye packets issued. git-svn-id: file:///home/lennart/svn/public/avahi/branches/federico@1561 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/announce.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'avahi-core/announce.c') diff --git a/avahi-core/announce.c b/avahi-core/announce.c index 9023fdc..cc7cc31 100644 --- a/avahi-core/announce.c +++ b/avahi-core/announce.c @@ -515,13 +515,14 @@ void avahi_goodbye_entry(AvahiServer *s, AvahiEntry *e, int send_goodbye, int re assert(s); assert(e); - /* tracing message for wide-area pub development */ - printf("--- record of type %d named %s observed at exitpoint\n", e->record->key->type, e->record->key->name); - if (send_goodbye) - if (!e->dead) + if (!e->dead) { avahi_interface_monitor_walk(s->monitor, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, send_goodbye_callback, e); + /* tracing message for wide-area pub development */ + printf("--- record of type %d named %s observed at exitpoint\n", e->record->key->type, e->record->key->name); + } + if (remove) while (e->announcers) remove_announcer(s, e->announcers); -- cgit