Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
10567:54f7939df8e3 | 10568:fed2a7c2471d |
---|---|
91 static void | 91 static void |
92 login_error_cb(GaimSslConnection *gsc, GaimSslErrorType error, void *data) | 92 login_error_cb(GaimSslConnection *gsc, GaimSslErrorType error, void *data) |
93 { | 93 { |
94 MsnNexus *nexus; | 94 MsnNexus *nexus; |
95 MsnSession *session; | 95 MsnSession *session; |
96 GaimAccount *account; | |
97 GaimConnection *gc; | |
98 | 96 |
99 nexus = data; | 97 nexus = data; |
100 g_return_if_fail(nexus != NULL); | 98 g_return_if_fail(nexus != NULL); |
101 | 99 |
102 session = nexus->session; | 100 session = nexus->session; |
103 g_return_if_fail(session != NULL); | 101 g_return_if_fail(session != NULL); |
104 | 102 |
105 account = session->account; | |
106 g_return_if_fail(account != NULL); | |
107 | |
108 gc = gaim_account_get_connection(account); | |
109 g_return_if_fail(gc != NULL); | |
110 | |
111 msn_session_set_error(session, MSN_ERROR_AUTH, _("Unable to connect")); | 103 msn_session_set_error(session, MSN_ERROR_AUTH, _("Unable to connect")); |
112 | 104 /* the above line will result in nexus being destroyed, so we don't want |
113 msn_nexus_destroy(nexus); | 105 * to destroy it here, or we'd crash */ |
114 session->nexus = NULL; | |
115 } | 106 } |
116 | 107 |
117 static void | 108 static void |
118 login_connect_cb(gpointer data, GaimSslConnection *gsc, | 109 login_connect_cb(gpointer data, GaimSslConnection *gsc, |
119 GaimInputCondition cond) | 110 GaimInputCondition cond) |