Compare commits

...

1 Commits

Author SHA1 Message Date
Admin
50af884563 Added settings write synchronization 2017-04-04 13:08:34 -05:00
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;