2017-04-22 06:16:45 +00:00
|
|
|
From 922d126f9e81684c5ca795fbbf67a7c38aaf1c18 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
|
2017-03-25 05:22:02 +00:00
|
|
|
index 6384d50e7..cb1fcf0f4 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
|
|
|
|
@@ -52,7 +52,7 @@ public class WatchdogThread extends Thread
|
|
|
|
while ( !stopping )
|
|
|
|
{
|
|
|
|
//
|
|
|
|
- if ( lastTick != 0 && System.currentTimeMillis() > lastTick + timeoutTime )
|
|
|
|
+ if ( lastTick != 0 && System.currentTimeMillis() > lastTick + timeoutTime && !Boolean.getBoolean("disable.watchdog")) // Paper - Add property to disable
|
|
|
|
{
|
|
|
|
Logger log = Bukkit.getServer().getLogger();
|
|
|
|
log.log( Level.SEVERE, "The server has stopped responding!" );
|
|
|
|
--
|
2017-04-22 06:16:45 +00:00
|
|
|
2.12.2
|
2016-05-13 04:04:49 +00:00
|
|
|
|