From 975268f84d6bc4d90ca38735a01af7a2a68bfc4f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 4 Mar 2007 02:58:22 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=12186 --- client/acct_setup.C | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/client/acct_setup.C b/client/acct_setup.C index f21d20a433..7528ebe7e1 100644 --- a/client/acct_setup.C +++ b/client/acct_setup.C @@ -314,19 +314,23 @@ int GET_PROJECT_LIST_OP::do_rpc() { return retval; } -void GET_PROJECT_LIST_OP::handle_reply(int) { +void GET_PROJECT_LIST_OP::handle_reply(int http_op_retval) { + if (http_op_retval) { + error_num = http_op_retval; + return; + } + gstate.project_list_check_time = gstate.now; } #define PROJECT_LIST_CHECK_PERIOD (14*86400) void CLIENT_STATE::project_list_check() { if (project_list_check_time) { - if (now - project_list_check_time > PROJECT_LIST_CHECK_PERIOD) { - get_project_list_op.do_rpc(); + if (now - project_list_check_time < PROJECT_LIST_CHECK_PERIOD) { + return; } - } else { - project_list_check_time = now; } + get_project_list_op.do_rpc(); } const char *BOINC_RCSID_84df3fc17e="$Id$";