changeset 21529:d3ac933fae46

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.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 15 Nov 2007 19:35:27 +0000
parents c9c6f77f624e
children bfa475b15dc5
files libpurple/protocols/bonjour/bonjour.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)