Mercurial > pidgin
changeset 17076:dfcca72d8653
Run the first timer at IDLEMARK + 1, to ensure we don't hit it right on IDLEMARK.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 14 May 2007 04:02:56 +0000 |
parents | 99787980b0eb |
children | 8d7e2cd32a9a |
files | libpurple/idle.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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(),