/soc/2013/ankitkv/gobjectification: 88ff7299c451: Do prpl->close...

Ankit Vani a at nevitus.org
Wed Oct 2 13:41:27 EDT 2013


Changeset: 88ff7299c4515544b0767fcd130c8042a340e61a
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-10-02 23:11 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/88ff7299c451

Description:

Do prpl->close() before invalidating the connection

diffstat:

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

diffs (20 lines):

diff --git a/libpurple/connection.c b/libpurple/connection.c
--- a/libpurple/connection.c
+++ b/libpurple/connection.c
@@ -724,13 +724,13 @@ purple_connection_finalize(GObject *obje
 
 	update_keepalive(gc, FALSE);
 
-	purple_http_conn_cancel_all(gc);
-	purple_proxy_connect_cancel_with_handle(gc);
-
 	prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(priv->prpl);
 	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*/
 	buddies = purple_blist_find_buddies(account, NULL);
 	while (buddies != NULL) {



More information about the Commits mailing list