changeset 13028:a19529ed8acb

[gaim-migrate @ 15381] Some better debugging from evands committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 24 Jan 2006 01:31:15 +0000
parents a0e53af77e49
children a793170f588c
files src/protocols/msn/slp.c
diffstat 1 files changed, 15 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/slp.c	Tue Jan 24 01:29:16 2006 +0000
+++ b/src/protocols/msn/slp.c	Tue Jan 24 01:31:15 2006 +0000
@@ -907,7 +907,7 @@
 		userlist->buddy_icon_window--;
 
 #ifdef MSN_DEBUG_UD
-		gaim_debug_info("msn", "buddy_icon_window=%d\n",
+		gaim_debug_info("msn", "msn_release_buddy_icon_request(): buddy_icon_window-- yields =%d\n",
 						userlist->buddy_icon_window);
 #endif
 	}
@@ -961,7 +961,7 @@
 		g_queue_push_tail(queue, user);
 
 #ifdef MSN_DEBUG_UD
-		gaim_debug_info("msn", "buddy_icon_window=%d\n",
+		gaim_debug_info("msn", "msn_queue_buddy_icon_request(): buddy_icon_window=%d\n",
 						userlist->buddy_icon_window);
 #endif
 
@@ -1006,7 +1006,7 @@
 	/* Free one window slot */
 	userlist->buddy_icon_window++;
 
-	gaim_debug_info("msn", "buddy_icon_window=%d\n",
+	gaim_debug_info("msn", "got_user_display(): buddy_icon_window++ yields =%d\n",
 					userlist->buddy_icon_window);
 
 	msn_release_buddy_icon_request(userlist);
@@ -1025,20 +1025,28 @@
 #endif
 
 	/* Maybe the slplink was destroyed. */
-	if (slpcall->slplink == NULL)
+	if (slpcall->slplink == NULL) {
+		#ifdef MSN_DEBUG_UD
+			gaim_debug_info("msn", "end_user_display(): returning because slpcall->slplink is NULL\n");
+		#endif
 		return;
+	}
 
 	userlist = slpcall->slplink->session->userlist;
 
 	/* If the session is being destroyed we better stop doing anything. */
-	if (slpcall->slplink->session->destroying)
+	if (slpcall->slplink->session->destroying) {
+		#ifdef MSN_DEBUG_UD
+			gaim_debug_info("msn", "end_user_display(): returning because slpcall->slplink->session->destroying is TRUE\n");
+		#endif
 		return;
+	}
 
 	/* Free one window slot */
 	userlist->buddy_icon_window++;
 
 #ifdef MSN_DEBUG_UD
-	gaim_debug_info("msn", "buddy_icon_window=%d\n",
+	gaim_debug_info("msn", "end_user_display(): buddy_icon_window++ yields =%d\n",
 					userlist->buddy_icon_window);
 #endif
 
@@ -1110,7 +1118,7 @@
 		session->userlist->buddy_icon_window++;
 
 #ifdef MSN_DEBUG_UD
-		gaim_debug_info("msn", "buddy_icon_window=%d\n",
+		gaim_debug_info("msn", "msn_request_user_display(): buddy_icon_window++ yields =%d\n",
 						session->userlist->buddy_icon_window);
 #endif