changeset 4773:75f0c2799664

[gaim-migrate @ 5092] This fixes the crash from signing on then signing off again in less than 10 seconds. It also fixes the "you have signed on too many times, wait 10 minutes then try again" crash. It's like butter. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 14 Mar 2003 16:01:08 +0000
parents 6fe8008d6560
children e870e313be96
files src/buddy.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Fri Mar 14 15:45:38 2003 +0000
+++ b/src/buddy.c	Fri Mar 14 16:01:08 2003 +0000
@@ -631,6 +631,8 @@
 		g_free(filename);
 
 		gtknode = GAIM_GTK_BLIST_NODE((GaimBlistNode*)b);
+		if (gtknode->timer > 0)
+			g_source_remove(gtknode->timer);
 		gtknode->timer = g_timeout_add(10000, (GSourceFunc)gaim_reset_present_icon, b);
 
 		/* "Hey, what's all this crap?" you ask.  Status icons will be themeable too, and