2019-06-06 15:36:57 +00:00
|
|
|
From 23eacc2aa2794bb3a1c00d8ad9f0546dd1772a08 Mon Sep 17 00:00:00 2001
|
2016-05-13 04:04:49 +00:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
|
|
Date: Thu, 12 May 2016 23:02:58 -0500
|
|
|
|
Subject: [PATCH] System property for disabling watchdoge
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/spigotmc/WatchdogThread.java b/src/main/java/org/spigotmc/WatchdogThread.java
|
2019-06-06 15:36:57 +00:00
|
|
|
index 56f5f54bd1..9532aada82 100644
|
2016-05-13 04:04:49 +00:00
|
|
|
--- a/src/main/java/org/spigotmc/WatchdogThread.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/WatchdogThread.java
|
2018-11-24 05:28:04 +00:00
|
|
|
@@ -57,7 +57,7 @@ public class WatchdogThread extends Thread
|
2016-05-13 04:04:49 +00:00
|
|
|
while ( !stopping )
|
|
|
|
{
|
|
|
|
//
|
2018-11-24 05:28:04 +00:00
|
|
|
- if ( lastTick != 0 && monotonicMillis() > lastTick + timeoutTime )
|
|
|
|
+ if ( lastTick != 0 && monotonicMillis() > lastTick + timeoutTime && !Boolean.getBoolean("disable.watchdog")) // Paper - Add property to disable
|
2016-05-13 04:04:49 +00:00
|
|
|
{
|
|
|
|
Logger log = Bukkit.getServer().getLogger();
|
2018-11-24 05:28:04 +00:00
|
|
|
log.log( Level.SEVERE, "------------------------------" );
|
2016-05-13 04:04:49 +00:00
|
|
|
--
|
2019-04-23 04:47:07 +00:00
|
|
|
2.21.0
|
2016-05-13 04:04:49 +00:00
|
|
|
|