mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-06 23:52:31 +01:00
Did not double-flush the file io thread if async = false
This commit is contained in:
parent
b0a7c129c4
commit
45ed30b235
@ -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…
Reference in New Issue
Block a user