# HG changeset patch # User Mark Doliner # Date 1138066275 0 # Node ID a19529ed8acb11e2e933583c64fe9d8b70fe5474 # Parent a0e53af77e49e55799c9d43b87315b8811b8b82e [gaim-migrate @ 15381] Some better debugging from evands committer: Tailor Script diff -r a0e53af77e49 -r a19529ed8acb src/protocols/msn/slp.c --- 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