Just use g_configs.unload(config) to unload config files.

Avoids concurrent modification errors.
This commit is contained in:
BenDol
2014-04-06 15:29:02 +12:00
parent a02c091376
commit 1baad726ae
5 changed files with 6 additions and 4 deletions

View File

@@ -117,6 +117,7 @@ bool ConfigManager::unload(const std::string& file)
ConfigPtr config = get(file);
if(config) {
config->unload();
remove(config);
config = nullptr;
return true;
}