changeset 26809:18129e760e10

Also check whether the ADL/FQY count is zero when we've received an error FQY, since the ADL OK will never happen if that was the last result. References #8588.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 04 May 2009 00:01:16 +0000
parents 8cb3403430bb
children 985e7f8d8744
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Sun May 03 23:09:57 2009 +0000
+++ b/libpurple/protocols/msn/notification.c	Mon May 04 00:01:16 2009 +0000
@@ -619,7 +619,11 @@
 		purple_debug_warning("msn",
 		                     "Ignoring user %s about which server knows nothing.\n",
 		                     passport);
-		session->adl_fqy--;
+		/* Decrement the count for unknown results so that we'll continue login.
+		   Also, need to finish the login process here as well, because ADL OK
+		   will not be called. */
+		if (--session->adl_fqy == 0)
+			msn_session_finish_login(session);
 		return;
 	}