Fix an infinite loop at startup for finch. Thanks to Bleeter for noticing this.

Sun, 20 May 2007 08:41:53 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sun, 20 May 2007 08:41:53 +0000
changeset 17248
2f4bf39e6ab4
parent 17247
9ce0e85a5200
child 17249
ed1db306861c
child 17251
cf8b45537d72

Fix an infinite loop at startup for finch. Thanks to Bleeter for noticing this.

libpurple/idle.c file | annotate | diff | comparison | revisions
--- a/libpurple/idle.c	Sun May 20 06:51:12 2007 +0000
+++ b/libpurple/idle.c	Sun May 20 08:41:53 2007 +0000
@@ -197,8 +197,8 @@
 	}
 	else if (!no_away && time_idle < away_seconds)
 	{
+		no_away = 1;
 		purple_savedstatus_set_idleaway(FALSE);
-		no_away = 1;
 		if (time_until_next_idle_event == 0 || (away_seconds - time_idle) < time_until_next_idle_event)
 			time_until_next_idle_event = away_seconds - time_idle;
 	}

mercurial