comparison libpurple/protocols/jabber/jabber.c @ 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 e13609ce4548
children eaaac273d80c 60f5abc6cf0c
comparison
equal deleted inserted replaced
21947:c6b408d16011 21948:af2c4ef3e61d
388 g_free(txt); 388 g_free(txt);
389 } 389 }
390 390
391 static void jabber_pong_cb(JabberStream *js, xmlnode *packet, gpointer timeout) 391 static void jabber_pong_cb(JabberStream *js, xmlnode *packet, gpointer timeout)
392 { 392 {
393 g_source_remove(GPOINTER_TO_INT(timeout)); 393 purple_timeout_remove(GPOINTER_TO_INT(timeout));
394 } 394 }
395 395
396 static gboolean jabber_pong_timeout(PurpleConnection *gc) 396 static gboolean jabber_pong_timeout(PurpleConnection *gc)
397 { 397 {
398 purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, 398 purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR,