Added settings write synchronization

This commit is contained in:
Admin
2017-04-04 13:08:34 -05:00
parent 0737c54a0e
commit 50af884563
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
<groupId>com.bwssystems.HABridge</groupId>
<artifactId>ha-bridge</artifactId>
<version>4.5.0alpha-3</version>
<version>4.5.0alpha-4</version>
<packaging>jar</packaging>
<name>HA Bridge</name>

View File

@@ -244,7 +244,7 @@ public class BridgeSettings extends BackupHandler {
}
private void configWriter(String content, Path filePath) {
private synchronized void configWriter(String content, Path filePath) {
if(Files.exists(filePath) && !Files.isWritable(filePath)){
log.error("Error file is not writable: " + filePath);
return;