configmanager: synchronize disk access

This commit is contained in:
Max Weber
2018-03-23 01:39:04 -06:00
parent 3d15de294b
commit b0435f11c3

View File

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