diff src/protocols/msn/nexus.c @ 10568:fed2a7c2471d

[gaim-migrate @ 11954] Some MSN bits: - Fix HTTP Method works when using an HTTP proxy that require authentication (Bastien Durel) - Better error reporting when the MSN servers are temporarily unavailable - Prevent zombie failed switchboard connections swallowing up messages - Fix win32 crashes receiving messages from aMSN with no formatting info - Fix a crash when the connection to the nexus server fails - maybe some other stuff, I forgot how much had piled up committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 03 Feb 2005 19:47:52 +0000
parents bec9130b24d2
children 94cc67130789
line wrap: on
line diff
--- a/src/protocols/msn/nexus.c	Thu Feb 03 15:37:13 2005 +0000
+++ b/src/protocols/msn/nexus.c	Thu Feb 03 19:47:52 2005 +0000
@@ -93,8 +93,6 @@
 {
 	MsnNexus *nexus;
 	MsnSession *session;
-	GaimAccount *account;
-	GaimConnection *gc;
 
 	nexus = data;
 	g_return_if_fail(nexus != NULL);
@@ -102,16 +100,9 @@
 	session = nexus->session;
 	g_return_if_fail(session != NULL);
 
-	account = session->account;
-	g_return_if_fail(account != NULL);
-
-	gc = gaim_account_get_connection(account);
-	g_return_if_fail(gc != NULL);
-
 	msn_session_set_error(session, MSN_ERROR_AUTH, _("Unable to connect"));
-
-	msn_nexus_destroy(nexus);
-	session->nexus = NULL;
+	/* the above line will result in nexus being destroyed, so we don't want
+	 * to destroy it here, or we'd crash */
 }
 
 static void