]> git.meshlink.io Git - catta/blobdiff - avahi-client/entrygroup.c
fix entry group destruction (closes #5)
[catta] / 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);