# HG changeset patch # User Richard Laager # Date 1179115376 0 # Node ID dfcca72d86532a565a4d35480fddfa78daf7e510 # Parent 99787980b0eb54419e07988cacb8e051f5213bb8 Run the first timer at IDLEMARK + 1, to ensure we don't hit it right on IDLEMARK. diff -r 99787980b0eb -r dfcca72d8653 libpurple/idle.c --- a/libpurple/idle.c Mon May 14 03:14:10 2007 +0000 +++ b/libpurple/idle.c Mon May 14 04:02:56 2007 +0000 @@ -268,7 +268,7 @@ purple_idle_init() { /* Add the timer to check if we're idle */ - idle_timer = purple_timeout_add(IDLEMARK * 1000, check_idleness_timer, NULL); + idle_timer = purple_timeout_add(1000 * (IDLEMARK + 1), check_idleness_timer, NULL); purple_signal_connect(purple_conversations_get_handle(), "sent-im-msg", purple_idle_get_handle(),