Don't try to remove a timer that doesn't exist

Mon, 13 Aug 2007 05:50:32 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Mon, 13 Aug 2007 05:50:32 +0000
changeset 19371
aa2049f44090
parent 19370
e332a909647f
child 19372
9463e376e5d4

Don't try to remove a timer that doesn't exist

pidgin/gtkconv.c file | annotate | diff | comparison | revisions
--- 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