Did not double-flush the file io thread if async = false
This commit is contained in:
Spottedleaf 2019-09-01 14:18:40 -07:00
parent b0a7c129c4
commit 45ed30b235

View File

@ -1886,7 +1886,7 @@ index 000000000..1dfa8abfd
+}
diff --git a/src/main/java/com/destroystokyo/paper/io/chunk/ChunkTaskManager.java b/src/main/java/com/destroystokyo/paper/io/chunk/ChunkTaskManager.java
new file mode 100644
index 000000000..98a9744a0
index 000000000..695e9909f
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/io/chunk/ChunkTaskManager.java
@@ -0,0 +0,0 @@
@ -2239,11 +2239,10 @@ index 000000000..98a9744a0
+ });
+ wait.join();
+ }
+ return;
+ }
+
+ for (final QueueExecutorThread<ChunkTask> worker : this.workers) {
+ worker.flush();
+ } else {
+ for (final QueueExecutorThread<ChunkTask> worker : this.workers) {
+ worker.flush();
+ }
+ }
+
+ // flush again since tasks we execute async saves