]> git.meshlink.io Git - catta/commitdiff
fix entry group destruction (closes #5)
authorLennart Poettering <lennart@poettering.net>
Fri, 27 Jan 2006 16:33:48 +0000 (16:33 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 27 Jan 2006 16:33:48 +0000 (16:33 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1110 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-client/entrygroup.c

index 162f2c4e003a0bd1403722a5ff2ce34046b39cfc..e43a44fb8ae42b61db5785ce7f084d0141187d58 100644 (file)
@@ -237,7 +237,7 @@ int avahi_entry_group_free(AvahiEntryGroup *group) {
         
     assert(group);
     
-    if (group->path && !avahi_client_is_connected(client))
+    if (group->path && avahi_client_is_connected(client))
         r = entry_group_simple_method_call(group, "Free");
     
     AVAHI_LLIST_REMOVE(AvahiEntryGroup, groups, client->groups, group);