changeset 21948:af2c4ef3e61d

purple_timeout_remove(), not g_source_remove(), must be used to remove a timeout added by purple_timeout_add(). The latter works when the glib run loop is being used but not when any other eventloop implementation is in use.
author Evan Schoenberg <evan.s@dreskin.net>
date Fri, 28 Dec 2007 05:54:50 +0000
parents c6b408d16011
children 18628d7aba30
files libpurple/protocols/jabber/jabber.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c	Fri Dec 28 02:49:23 2007 +0000
+++ b/libpurple/protocols/jabber/jabber.c	Fri Dec 28 05:54:50 2007 +0000
@@ -390,7 +390,7 @@
 
 static void jabber_pong_cb(JabberStream *js, xmlnode *packet, gpointer timeout) 
 {
-	g_source_remove(GPOINTER_TO_INT(timeout));
+	purple_timeout_remove(GPOINTER_TO_INT(timeout));
 }
 
 static gboolean jabber_pong_timeout(PurpleConnection *gc)