pidgin/gtkconv.c

changeset 19371
aa2049f44090
parent 19370
e332a909647f
child 19372
9463e376e5d4
--- 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)

mercurial