diff libpurple/protocols/jabber/jabber.c @ 27775:1ea1aee71848

jabber: Fix setting Google Talk avatar at login. Google Talk (at some point) started returning IQ errors when setting the avatar in the first 10 seconds of login. This was reported by Bill Lovett to the jdev mailing list and he included the 10-second "magic number".
author Paul Aurich <paul@darkrain42.org>
date Sat, 01 Aug 2009 01:53:02 +0000
parents e8e056876e39
children 3ad2700e7c68
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Fri Jul 31 14:40:03 2009 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Sat Aug 01 01:53:02 2009 +0000
@@ -1542,6 +1542,9 @@
 	g_free(js->old_track);
 	g_free(js->expected_rspauth);
 
+	if (js->vcard_timer != 0)
+		purple_timeout_remove(js->vcard_timer);
+
 	if (js->keepalive_timeout != 0)
 		purple_timeout_remove(js->keepalive_timeout);