Only save the changed parts of config to disk.

This commit is contained in:
Thomas Göttgens
2022-10-04 14:32:07 +02:00
parent dc097c7230
commit 3597685b23
7 changed files with 42 additions and 30 deletions

View File

@@ -241,7 +241,7 @@ void AdminModule::handleSetConfig(const Config &c)
break;
}
service.reloadConfig();
service.reloadConfig(SEGMENT_CONFIG);
// Reboot 5 seconds after a config that requires rebooting is set
if (requiresReboot) {
DEBUG_MSG("Rebooting due to config changes\n");
@@ -290,7 +290,7 @@ void AdminModule::handleSetModuleConfig(const ModuleConfig &c)
break;
}
service.reloadConfig();
service.reloadConfig(SEGMENT_MODULECONFIG);
}
void AdminModule::handleSetChannel(const Channel &cc)