summaryrefslogtreecommitdiffstats
path: root/avahi-core/announce.c
diff options
context:
space:
mode:
authorFederico Lucifredi <flucifredi@acm.org>2007-10-26 05:36:46 +0000
committerFederico Lucifredi <flucifredi@acm.org>2007-10-26 05:36:46 +0000
commit1dc1c4fc744d3885c9ffd9bca41536c83323cb21 (patch)
tree8a10d9ee5001e01d16c008a5aedd4b5ba21bb60e /avahi-core/announce.c
parent200c598e9cae1fceefec5865b147c7f6631e6a67 (diff)
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
Diffstat (limited to 'avahi-core/announce.c')
-rw-r--r--avahi-core/announce.c9
1 files changed, 5 insertions, 4 deletions
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);