mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Did not double-flush the file io thread if async = false
This commit is contained in:
parent
b0a7c129c4
commit
45ed30b235
1 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue