Merge pull request #1064 from Abextm/configsync

configmanager: Synchronize disk access
This commit is contained in:
Adam
2018-03-23 12:03:54 -04:00
committed by GitHub

View File

@@ -170,7 +170,7 @@ public class ConfigManager
}
}
private void loadFromFile()
private synchronized void loadFromFile()
{
properties.clear();
@@ -216,7 +216,7 @@ public class ConfigManager
}
}
private void saveToFile() throws IOException
private synchronized void saveToFile() throws IOException
{
propertiesFile.getParentFile().mkdirs();