changeset 13978:ea00953490a8

[gaim-migrate @ 16537] Hopefully prevent an assertion failure when you lose your connection to MSN. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 22 Jul 2006 18:11:34 +0000
parents 96947ec79828
children a71678d2da16
files src/protocols/msn/servconn.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/servconn.c	Sat Jul 22 11:44:46 2006 +0000
+++ b/src/protocols/msn/servconn.c	Sat Jul 22 18:11:34 2006 +0000
@@ -125,6 +125,8 @@
 	const char *names[] = { "Notification", "Switchboard" };
 	const char *name;
 
+	msn_servconn_disconnect(servconn);
+
 	name = names[servconn->type];
 
 	switch (error)
@@ -156,8 +158,6 @@
 			swboard->error = MSN_SB_ERROR_CONNECTION;
 	}
 
-	msn_servconn_disconnect(servconn);
-
 	g_free(tmp);
 }