mirror of https://github.com/BOINC/boinc.git
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:
parent
44f3763ce1
commit
c8bde8cfd5
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue