im.pidgin.pidgin: 0c15a2e5a1152b54dff91cabf087144ecc3750b2

datallah at pidgin.im datallah at pidgin.im
Thu Nov 15 14:45:34 EST 2007


-----------------------------------------------------------------
Revision: 0c15a2e5a1152b54dff91cabf087144ecc3750b2
Ancestor: 3979d1b2a729eca61f9238dae2dde66170405387
Author: datallah at pidgin.im
Date: 2007-11-15T19:35:27
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/bonjour/bonjour.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/protocols/bonjour/bonjour.c	ab854bdc1c3160fecdf938fbe22cbf20a5ddb10f
+++ libpurple/protocols/bonjour/bonjour.c	eda33f3853fc4c25c2067eadf365f6ce0cb161da
@@ -172,6 +172,9 @@ bonjour_close(PurpleConnection *connecti
 	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 @@ bonjour_close(PurpleConnection *connecti
 		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)


More information about the Commits mailing list