pidgin: 5d945631: This seems to not work every once in a w...

qulogic at pidgin.im qulogic at pidgin.im
Sat Aug 22 19:35:51 EDT 2009


-----------------------------------------------------------------
Revision: 5d9456311f879116a0aa9a4e39d9262030f2f79e
Ancestor: cf6de57a67ba9d191b77aa1f1ab13d9980ce5cb1
Author: qulogic at pidgin.im
Date: 2009-08-22T22:55:02
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/5d9456311f879116a0aa9a4e39d9262030f2f79e

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

ChangeLog: 

This seems to not work every once in a while, so put in some code under the
verbose flag.

Refs #10023.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	6aa3397f80df1c74d4ca15571b1bd9b66e56a68d
+++ libpurple/protocols/msn/notification.c	614ac44d430e991c1e045560c396a2ce5608bc3f
@@ -599,6 +599,8 @@ update_contact_network(MsnSession *sessi
 		/* 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 (purple_debug_is_verbose())
+			purple_debug_info("msn", "ADL/FQY count is %d\n", session->adl_fqy);
 		if (--session->adl_fqy == 0)
 			msn_session_finish_login(session);
 		return;
@@ -680,6 +682,9 @@ msn_notification_dump_contact(MsnSession
 
 				/* ADL's are returned all-together */
 				session->adl_fqy++;
+				if (purple_debug_is_verbose())
+					purple_debug_info("msn", "Posting ADL, count is %d\n",
+					                  session->adl_fqy);
 
 				msn_notification_post_adl(session->notification->cmdproc,
 					payload, payload_len);
@@ -694,6 +699,9 @@ msn_notification_dump_contact(MsnSession
 		} else {
 			/* FQY's are returned one-at-a-time */
 			session->adl_fqy++;
+			if (purple_debug_is_verbose())
+				purple_debug_info("msn", "Adding FQY address, count is %d\n",
+				                  session->adl_fqy);
 
 			msn_add_contact_xml(session, fqy_node, user->passport,
 				0, user->networkid);
@@ -718,6 +726,9 @@ msn_notification_dump_contact(MsnSession
 
 		/* ADL's are returned all-together */
 		session->adl_fqy++;
+		if (purple_debug_is_verbose())
+			purple_debug_info("msn", "Posting ADL, count is %d\n",
+			                  session->adl_fqy);
 
 		msn_notification_post_adl(session->notification->cmdproc, payload, payload_len);
 
@@ -809,6 +820,9 @@ adl_cmd(MsnCmdProc *cmdproc, MsnCommand 
 
 	if (!strcmp(cmd->params[1], "OK")) {
 		/* ADL ack */
+		if (purple_debug_is_verbose())
+			purple_debug_info("msn", "ADL ACK, count is %d\n",
+			                  session->adl_fqy);
 		if (--session->adl_fqy == 0)
 			msn_session_finish_login(session);
 	} else {


More information about the Commits mailing list