Fix reloading config

Fully clear the configuration before reloading, so that when the config
is read and merged in there are no existing values which mergeConfig
refuses to overwrite.
master
cptpcrd 2024-03-24 15:39:15 -04:00
parent c6cbf57a38
commit e3ceaf63d1
1 changed files with 1 additions and 0 deletions

View File

@ -162,6 +162,7 @@ void Config::load(const std::string &config) {
}
config_file_ = file.value();
spdlog::info("Using configuration file {}", config_file_);
config_ = Json::Value();
setupConfig(config_, config_file_, 0);
}