]> git.meshlink.io Git - catta/commitdiff
Fix service reloading on SIGHUP (thanks, Sebastien!)
authorLennart Poettering <lennart@poettering.net>
Tue, 16 Aug 2005 01:03:32 +0000 (01:03 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Aug 2005 01:03:32 +0000 (01:03 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@349 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-daemon/static-services.c

index c155c22df6b157e51fec7030177fd8ab28b24a4f..0c0c56333b75bd898d274ec10b4e0c2a3df50fc8 100644 (file)
@@ -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);