client: fix bug that caused app_config settings to persist incorrectly

We needed to clear the app_configs and app_version_configs vectors in PROJECT
if app_config.xml isn't there
This commit is contained in:
David Anderson 2014-06-05 17:56:03 -07:00
parent 44f3763ce1
commit c8bde8cfd5
2 changed files with 5 additions and 0 deletions

View File

@ -191,6 +191,7 @@ void max_concurrent_init() {
// It will be restored on next scheduler RPC.
//
static void clear_app_config(PROJECT* p) {
p->app_configs.clear();
for (unsigned int i=0; i<gstate.apps.size(); i++) {
APP* app = gstate.apps[i];
if (app->project != p) continue;

View File

@ -54,6 +54,10 @@ struct APP_CONFIGS {
int parse(XML_PARSER&, PROJECT*);
int parse_file(FILE*, PROJECT*);
void config_app_versions(PROJECT*, bool show_warnings);
void clear() {
app_configs.clear();
app_version_configs.clear();
}
};
extern bool have_max_concurrent;