/soc/2013/ankitkv/gobjectification: f1830e23ab81: A bit of logic...

Ankit Vani a at nevitus.org
Wed Oct 2 21:18:11 EDT 2013


Changeset: f1830e23ab81f66dd01967a90bde7696730a7eda
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-10-03 06:46 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/f1830e23ab81

Description:

A bit of logical rearranging

diffstat:

 libpurple/connection.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (25 lines):

diff --git a/libpurple/connection.c b/libpurple/connection.c
--- a/libpurple/connection.c
+++ b/libpurple/connection.c
@@ -728,10 +728,7 @@ purple_connection_finalize(GObject *obje
 	if (prpl_info->close)
 		(prpl_info->close)(gc);
 
-	purple_http_conn_cancel_all(gc);
-	purple_proxy_connect_cancel_with_handle(gc);
-
-	/* Clear out the proto data that was freed in the prpl close method*/
+	/* Clear out the proto data that was freed in the prpl close method */
 	buddies = purple_blist_find_buddies(account, NULL);
 	while (buddies != NULL) {
 		PurpleBuddy *buddy = buddies->data;
@@ -739,6 +736,9 @@ purple_connection_finalize(GObject *obje
 		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);



More information about the Commits mailing list