diff --git a/client/cs_trickle.C b/client/cs_trickle.C index 21bc6e1d55..87a47f9e38 100644 --- a/client/cs_trickle.C +++ b/client/cs_trickle.C @@ -58,7 +58,7 @@ int CLIENT_STATE::read_trickle_files(PROJECT* project, FILE* f) { if (retval) continue; fprintf(f, " \n" - " %s\n" + " %s\n" " \n" " \n" "%s\n" diff --git a/client/scheduler_op.C b/client/scheduler_op.C index 6fccf28f8d..e47f6c041c 100644 --- a/client/scheduler_op.C +++ b/client/scheduler_op.C @@ -461,28 +461,31 @@ bool SCHEDULER_OP::poll() { project->scheduler_urls[url_index].text ); } - gstate.handle_scheduler_reply(project, scheduler_url, nresults); + retval = gstate.handle_scheduler_reply(project, scheduler_url, nresults); // if this was a tentative project and we didn't get user name, // the account ID must be bad. Tell the user. // if (project->tentative) { - if (strlen(project->user_name)) { + if (retval || strlen(project->user_name)==0) { + project_add_failed(project); + } else { project->tentative = false; project->write_account_file(); - } else { - project_add_failed(project); } } else { - - // if we asked for work and didn't get any, - // back off this project - // - if (must_get_work && nresults==0) { - backoff(project, "No work from project\n"); + if (retval) { + backoff(project, "Can't parse scheduler reply"); } else { - project->nrpc_failures = 0; - project->min_rpc_time = 0; + // if we asked for work and didn't get any, + // back off this project + // + if (must_get_work && nresults==0) { + backoff(project, "No work from project\n"); + } else { + project->nrpc_failures = 0; + project->min_rpc_time = 0; + } } }