# HG changeset patch # User Daniel Atallah # Date 1195155327 0 # Node ID d3ac933fae46fbeca5f370f9e9ca0f9dd618a757 # Parent c9c6f77f624e148d0eb9e659d013252caad527b2 Now that the buddies are being removed from the list correctly, it needs to happen before the dns_sd stuff is cleaned up when we disconnect so that it doesn't crash the avahi implementation. diff -r c9c6f77f624e -r d3ac933fae46 libpurple/protocols/bonjour/bonjour.c --- a/libpurple/protocols/bonjour/bonjour.c Thu Nov 15 18:25:50 2007 +0000 +++ b/libpurple/protocols/bonjour/bonjour.c Thu Nov 15 19:35:27 2007 +0000 @@ -172,6 +172,9 @@ PurpleGroup *bonjour_group; BonjourData *bd = connection->proto_data; + /* Remove all the bonjour buddies */ + bonjour_removeallfromlocal(connection); + /* Stop looking for buddies in the LAN */ if (bd != NULL && bd->dns_sd_data != NULL) { @@ -186,9 +189,6 @@ g_free(bd->jabber_data); } - /* Remove all the bonjour buddies */ - bonjour_removeallfromlocal(connection); - /* Delete the bonjour group */ bonjour_group = purple_find_group(BONJOUR_GROUP_NAME); if (bonjour_group != NULL)