diff src/protocols/msn/userlist.c @ 13125:442b23efba54

[gaim-migrate @ 15487] sf patch #1424749, from Evan Schoenberg Fix MSN buddy icon rate-limiting problems committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 05 Feb 2006 21:30:43 +0000
parents 29e237c4141b
children 4b8dcf7c38a2
line wrap: on
line diff
--- a/src/protocols/msn/userlist.c	Sun Feb 05 20:06:31 2006 +0000
+++ b/src/protocols/msn/userlist.c	Sun Feb 05 21:30:43 2006 +0000
@@ -448,7 +448,11 @@
 
 	userlist->session = session;
 	userlist->buddy_icon_requests = g_queue_new();
-	userlist->buddy_icon_window = 5;
+	
+	/* buddy_icon_window is the number of allowed simultaneous buddy icon requests.
+	 * XXX With smarter rate limiting code, we could allow more at once... 5 was the limit set when
+	 * we weren't retrieiving any more than 5 per MSN session. */
+	userlist->buddy_icon_window = 1;
 
 	return userlist;
 }
@@ -473,6 +477,10 @@
 	g_list_free(userlist->groups);
 
 	g_queue_free(userlist->buddy_icon_requests);
+
+	if (userlist->buddy_icon_request_timer)
+		gaim_timeout_remove(userlist->buddy_icon_request_timer);
+
 	g_free(userlist);
 }