[gaim-migrate @ 5092]

Fri, 14 Mar 2003 16:01:08 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Fri, 14 Mar 2003 16:01:08 +0000
changeset 4773
1cc75c5e16b0
parent 4772
a7f2b699c0bc
child 4774
3442bb2b0bbb

[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.

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

mercurial