libpurple/connection.c

branch
soc.2013.gobjectification.plugins
changeset 36857
79d57b15c8cc
parent 36855
535eb3c6eef7
parent 35000
f1830e23ab81
child 36867
92c196849837
--- a/libpurple/connection.c	Thu Oct 03 02:15:31 2013 +0530
+++ b/libpurple/connection.c	Thu Oct 03 06:47:52 2013 +0530
@@ -720,9 +720,6 @@
 
 	purple_protocol_class_close(priv->protocol, gc);
 
-	purple_http_conn_cancel_all(gc);
-	purple_proxy_connect_cancel_with_handle(gc);
-
 	/* Clear out the proto data that was freed in the protocol's close method */
 	buddies = purple_blist_find_buddies(account, NULL);
 	while (buddies != NULL) {
@@ -731,6 +728,9 @@
 		buddies = g_slist_delete_link(buddies, buddies);
 	}
 
+	purple_http_conn_cancel_all(gc);
+	purple_proxy_connect_cancel_with_handle(gc);
+
 	connections = g_list_remove(connections, gc);
 
 	purple_connection_set_state(gc, PURPLE_CONNECTION_DISCONNECTED);

mercurial