client: don't piggyback work request if project is NNW or suspended

This commit is contained in:
David Anderson 2013-05-21 21:49:26 -07:00
parent ff1311bf11
commit e033347ba9
1 changed files with 3 additions and 1 deletions

View File

@ -460,12 +460,14 @@ bool WORK_FETCH::requested_work() {
}
// we're going to contact this project for reasons other than work fetch;
// decide if we should piggy-back a work fetch request.
// decide if we should "piggyback" a work fetch request.
//
void WORK_FETCH::piggyback_work_request(PROJECT* p) {
DEBUG(msg_printf(p, MSG_INFO, "piggyback_work_request()");)
clear_request();
if (config.fetch_minimal_work && gstate.had_or_requested_work) return;
if (p->dont_request_more_work) return;
if (p->suspended_via_gui) return;
if (p->non_cpu_intensive) {
if (!has_a_job(p)) {
rsc_work_fetch[0].req_secs = 1;