diff libpurple/protocols/bonjour/bonjour.c @ 21522:dc703f13449a

Fix a couple bugs in the Bonjour XEP-0065 implementation, mainly related to error handling, but also send a <streamhost-used /> result. Also fix a XEP-0096 bug where the SI profile wasn't being specified. These bring ft with gajim closer to working, but we aren't there yet.
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 15 Nov 2007 14:53:53 +0000
parents db7fa42845f6
children 5b9da9db7e81
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/bonjour.c	Thu Nov 15 14:22:06 2007 +0000
+++ b/libpurple/protocols/bonjour/bonjour.c	Thu Nov 15 14:53:53 2007 +0000
@@ -193,6 +193,11 @@
 	if (bonjour_group != NULL)
 		purple_blist_remove_group(bonjour_group);
 
+	/* Cancel any file transfers */
+	while (bd != NULL && bd->xfer_lists) {
+		purple_xfer_cancel_local(bd->xfer_lists->data);
+	}
+
 	g_free(bd);
 	connection->proto_data = NULL;
 }