# HG changeset patch # User Mark Doliner # Date 1186984232 0 # Node ID da310fe624f13d3e6830811772f7bd5149b94177 # Parent f1fb41d31c70659430f9f0dad709d97e4c77f09c Don't try to remove a timer that doesn't exist diff -r f1fb41d31c70 -r da310fe624f1 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Mon Aug 13 05:34:45 2007 +0000 +++ b/pidgin/gtkconv.c Mon Aug 13 05:50:32 2007 +0000 @@ -3340,8 +3340,10 @@ } else { stock_id = PIDGIN_STOCK_ANIMATION_TYPING5; tooltip = _("User has typed something and stopped"); - g_source_remove(gtkconv->u.im->typing_timer); - gtkconv->u.im->typing_timer = 0; + if (gtkconv->u.im->typing_timer != 0) { + g_source_remove(gtkconv->u.im->typing_timer); + gtkconv->u.im->typing_timer = 0; + } } if (gtkwin->menu.typing_icon == NULL)