Fix no config found being stuck

This commit is contained in:
vaxerski 2021-12-08 22:27:53 +01:00
parent c39ced01b0
commit 24db17f139

View file

@ -311,6 +311,8 @@ void ConfigManager::loadConfigLoadVars() {
if (!ifs.good()) {
Debug::log(WARN, "Config reading error. (No file?)");
ConfigManager::parseError = "The config could not be read. (No file?)";
ifs.close();
return;
}
@ -411,7 +413,7 @@ void ConfigManager::tick() {
}
// check if we need to reload cfg
if(fileStat.st_mtime > lastModifyTime) {
if(fileStat.st_mtime != lastModifyTime) {
lastModifyTime = fileStat.st_mtime;
ConfigManager::loadConfigLoadVars();