Skip to content

Commit

Permalink
Make Watchdog thread extend TickThread
Browse files Browse the repository at this point in the history
This allows the watchdog thread to be seen as the
primary thread during shutdown, which prevents it
from tripping thread checks in various areas.

Fixes #12030
  • Loading branch information
Spottedleaf committed Jan 28, 2025
1 parent 5a34bf0 commit a392d47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.bukkit.Bukkit;
import org.bukkit.craftbukkit.CraftServer;

public class WatchdogThread extends Thread {
public class WatchdogThread extends ca.spottedleaf.moonrise.common.util.TickThread { // Paper - rewrite chunk system

public static final boolean DISABLE_WATCHDOG = Boolean.getBoolean("disable.watchdog"); // Paper - Improved watchdog support
private static WatchdogThread instance;
Expand Down

0 comments on commit a392d47

Please sign in to comment.