changeset 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
files pidgin/gtkconv.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
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)