changeset 28062:a9594824b8a3

If the SOAP server returns a 503 AND we haven't yet authenticated, then treat the error as fatal. Otherwise, just continue parsing stuff as usual and send the error result to the callback. Fixes #9681.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 29 Jul 2009 01:50:54 +0000
parents 6d9dc2a2a797
children 03c99fb4c981
files libpurple/protocols/msn/soap.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/soap.c	Tue Jul 28 22:25:41 2009 +0000
+++ b/libpurple/protocols/msn/soap.c	Wed Jul 29 01:50:54 2009 +0000
@@ -385,7 +385,7 @@
 					msn_soap_connection_handle_next(conn);
 					handled = TRUE;
 					break;
-				} else if (conn->response_code == 503) {
+				} else if (conn->response_code == 503 && conn->session->login_step < MSN_LOGIN_STEP_END) {
 					msn_soap_connection_sanitize(conn, TRUE);
 					msn_session_set_error(conn->session, MSN_ERROR_SERV_UNAVAILABLE, NULL);
 					return;