From: Lennart Poettering Date: Tue, 16 Aug 2005 01:03:32 +0000 (+0000) Subject: Fix service reloading on SIGHUP (thanks, Sebastien!) X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=91c63aa9b11519356a319d28a134fa3693da02a9;p=catta Fix service reloading on SIGHUP (thanks, Sebastien!) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@349 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-daemon/static-services.c b/avahi-daemon/static-services.c index c155c22..0c0c563 100644 --- a/avahi-daemon/static-services.c +++ b/avahi-daemon/static-services.c @@ -192,6 +192,10 @@ static void add_static_service_group_to_server(StaticServiceGroup *g) { StaticService *s; assert(g); + + if (g->entry_group && !avahi_s_entry_group_is_empty(g->entry_group)) + /* This service group is already registered in the server */ + return; if (g->chosen_name) avahi_free(g->chosen_name);