Merge pull request #1064 from Abextm/configsync
configmanager: Synchronize disk access
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user