aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0365-Wait-for-Async-Tasks-during-shutdown.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0365-Wait-for-Async-Tasks-during-shutdown.patch')
-rw-r--r--patches/server/0365-Wait-for-Async-Tasks-during-shutdown.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/patches/server/0365-Wait-for-Async-Tasks-during-shutdown.patch b/patches/server/0365-Wait-for-Async-Tasks-during-shutdown.patch
index 4df8e38b8b..5b396410c9 100644
--- a/patches/server/0365-Wait-for-Async-Tasks-during-shutdown.patch
+++ b/patches/server/0365-Wait-for-Async-Tasks-during-shutdown.patch
@@ -22,10 +22,10 @@ index 386f8b825dac6dda253b0c55a3a0eeef5bdca271..0087e8037e2d30d940e6efa886226e59
// CraftBukkit end
if (io.papermc.paper.plugin.PluginInitializerManager.instance().pluginRemapper != null) io.papermc.paper.plugin.PluginInitializerManager.instance().pluginRemapper.shutdown(); // Paper - Plugin remapping
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
-index 8e0e38bc85ca97f4c632299affc366ece7e63a52..01224af0835a00343923767186dceb53900c0832 100644
+index c6a96664ef914d0da1e24b93da93bad1b4a17716..45799f96978a68a79b4c89e17e9b543dec99a8b1 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
-@@ -1024,6 +1024,31 @@ public final class CraftServer implements Server {
+@@ -1024,6 +1024,32 @@ public final class CraftServer implements Server {
org.spigotmc.WatchdogThread.hasStarted = true; // Paper - Disable watchdog early timeout on reload
}
@@ -50,6 +50,7 @@ index 8e0e38bc85ca97f4c632299affc366ece7e63a52..01224af0835a00343923767186dceb53
+ plugin.getPluginMeta().getDisplayName(),
+ "This plugin is not properly shutting down its async tasks when it is being shut down. This task may throw errors during the final shutdown logs and might not complete before process dies."
+ ));
++ if (console.isDebugging()) io.papermc.paper.util.TraceUtil.dumpTraceForThread(worker.getThread(), "still running"); // Paper - Debugging
+ }
+ }
+ // Paper end - Wait for Async Tasks during shutdown