From e033347ba97b4ab04dcb4dc65c6a69d944ca80c8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 21 May 2013 21:49:26 -0700 Subject: [PATCH] client: don't piggyback work request if project is NNW or suspended --- client/work_fetch.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/work_fetch.cpp b/client/work_fetch.cpp index 79c547ed13..680c0f49f9 100644 --- a/client/work_fetch.cpp +++ b/client/work_fetch.cpp @@ -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;