client: clear no_rsc_apps[] flags before parsing scheduler reply. Otherwise they'll never get cleared if server doesn't explicitly send.

This commit is contained in:
David Anderson 2013-11-05 12:56:51 -08:00
parent a3b2be239f
commit 9778177448
2 changed files with 4 additions and 1 deletions

View File

@ -905,4 +905,3 @@ void PROJECT::check_no_apps() {
no_rsc_apps[avp->gpu_usage.rsc_type] = false;
}
}

View File

@ -592,6 +592,10 @@ int SCHEDULER_REPLY::parse(FILE* in, PROJECT* project) {
sr_feeds.clear();
trickle_up_urls.clear();
for (int i=0; i<MAX_RSC; i++) {
project->no_rsc_apps[i] = false;
}
// First line should either be tag (HTTP 1.0) or
// hex length of response (HTTP 1.1)
//