pidgin: 233c2824: Also check whether the ADL/FQY count is ..

qulogic at pidgin.im qulogic at pidgin.im
Sun May 3 20:05:31 EDT 2009


-----------------------------------------------------------------
Revision: 233c28248ecd717704ccb1932748bdf97b679cf1
Ancestor: 3bb16ff558e43f80f9044fd6d1ab7d66adaad761
Author: qulogic at pidgin.im
Date: 2009-05-04T00:01:16
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/233c28248ecd717704ccb1932748bdf97b679cf1

Modified files:
        libpurple/protocols/msn/notification.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	5af74e102ca714a8028cdd66057f7db7db9e8414
+++ libpurple/protocols/msn/notification.c	62d1bf967861b463e17f112f447470373b20bed1
@@ -619,7 +619,11 @@ update_contact_network(MsnSession *sessi
 		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;
 	}
 


More information about the Commits mailing list