Close channel before replacing file with tmp file
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
--- /dev/null
|
||||
+++ b/src/main/java/me/earthme/luminol/data/BufferedLinearRegionFile.java
|
||||
@@ -1,0 +_,629 @@
|
||||
@@ -1,0 +_,631 @@
|
||||
+package me.earthme.luminol.data;
|
||||
+
|
||||
+import abomination.IRegionFile;
|
||||
@@ -213,6 +213,8 @@
|
||||
+ this.currentAcquiredIndex = tempChannel.size();
|
||||
+ }
|
||||
+
|
||||
+ this.channel.close();
|
||||
+
|
||||
+ Files.move(
|
||||
+ new File(this.filePath.toString() + ".tmp").toPath(),
|
||||
+ this.filePath,
|
||||
|
||||
Reference in New Issue
Block a user