diff pidgin/gtkconv.c @ 19230:da310fe624f1

Don't try to remove a timer that doesn't exist
author Mark Doliner <mark@kingant.net>
date Mon, 13 Aug 2007 05:50:32 +0000
parents f1fb41d31c70
children 03d81500766d
line wrap: on
line diff
--- 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)