pidgin: 674f6a1c: Gadu-Gadu Get Info isn't behaving proper...

evands at pidgin.im evands at pidgin.im
Sat Jul 12 10:25:58 EDT 2008


-----------------------------------------------------------------
Revision: 674f6a1c7267dc286556d800aed27b28a169c523
Ancestor: 3fc4df7332983d84a3632b6372c6f7c894b529a3
Author: evands at pidgin.im
Date: 2008-07-12T14:22:34
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/674f6a1c7267dc286556d800aed27b28a169c523

Modified files:
        libpurple/protocols/gg/gg.c

ChangeLog: 

Gadu-Gadu Get Info isn't behaving properly. Added debug logging to its traking
of sequence numbers which allow it to associate requests to GGPSearchForm
objects. Refs #6296

-------------- next part --------------
============================================================
--- libpurple/protocols/gg/gg.c	f66c4b548f16d7c875ee13b5a33ff937ddb27a2c
+++ libpurple/protocols/gg/gg.c	3541ee65317e2d346e4e478792f99829dd6d2f26
@@ -527,9 +527,11 @@ static void ggp_callback_show_next(Purpl
 	form->offset = g_strdup(form->last_uin);
 
 	ggp_search_remove(info->searches, form->seq);
+	purple_debug_info("gg", "ggp_callback_show_next(): Removed seq %u", form->seq);
 
 	seq = ggp_search_start(gc, form);
 	ggp_search_add(info->searches, seq, form);
+	purple_debug_info("gg", "ggp_callback_show_next(): Added seq %u", seq);
 }
 /* }}} */
 
@@ -607,6 +609,7 @@ static void ggp_callback_find_buddies(Pu
 
 	seq = ggp_search_start(gc, form);
 	ggp_search_add(info->searches, seq, form);
+	purple_debug_info("gg", "ggp_callback_find_buddies(): Added seq %u", seq);
 }
 /* }}} */
 
@@ -991,6 +994,7 @@ static void ggp_sr_close_cb(gpointer use
 	GGPInfo *info = form->user_data;
 
 	ggp_search_remove(info->searches, form->seq);
+	purple_debug_info("gg", "ggp_sr_close_cb(): Removed seq %u", form->seq);
 	ggp_search_form_destroy(form);
 }
 /* }}} */
@@ -1206,7 +1210,7 @@ static void ggp_pubdir_reply_handler(Pur
 
 	seq = gg_pubdir50_seq(req);
 	form = ggp_search_get(info->searches, seq);
-
+	purple_debug_info("gg", "ggp_pubdir_reply_handler(): seq %u --> form %p", seq, form);
 	/*
 	 * this can happen when user will request more results
 	 * and close the results window before they arrive.
@@ -1819,6 +1823,7 @@ static void ggp_get_info(PurpleConnectio
 
 	seq = ggp_search_start(gc, form);
 	ggp_search_add(info->searches, seq, form);
+	purple_debug_info("gg", "ggp_get_info(): Added seq %u", seq);
 }
 /* }}} */
 


More information about the Commits mailing list