changeset 23690:107166bb2a64

I guess I re-arranged a little off. We probably should disconnect *before* freeing things, right? Fixes #6547.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 09 Aug 2008 23:23:48 +0000
parents 7cb8e04bca7a
children 5b5f92944d49 5f454b975a99
files libpurple/protocols/msn/session.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/session.c	Sat Aug 09 04:25:58 2008 +0000
+++ b/libpurple/protocols/msn/session.c	Sat Aug 09 23:23:48 2008 +0000
@@ -57,6 +57,9 @@
 
 	session->destroying = TRUE;
 
+	if (session->connected)
+		msn_session_disconnect(session);
+
 	if (session->soap_cleanup_handle)
 		purple_timeout_remove(session->soap_cleanup_handle);
 
@@ -84,9 +87,6 @@
 	if (session->notification != NULL)
 		msn_notification_destroy(session->notification);
 
-	if (session->connected)
-		msn_session_disconnect(session);
-
 	msn_userlist_destroy(session->userlist);
 
 	g_free(session->psm);