mirror of
https://github.com/edubart/otclient.git
synced 2025-12-17 06:07:11 +01:00
Just use g_configs.unload(config) to unload config files.
Avoids concurrent modification errors.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user