Move this somewhere sane
This commit is contained in:
parent
32ecc21162
commit
fa24cff5ba
1 changed files with 12 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
From c4769bc62dc29d598093e20269fd1f8213cb0f20 Mon Sep 17 00:00:00 2001
|
From 5fb24d96351092f0b6880a8e0f30de8fa517ba6e Mon Sep 17 00:00:00 2001
|
||||||
From: Zach Brown <zach.brown@destroystokyo.com>
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
||||||
Date: Tue, 1 Mar 2016 14:32:43 -0600
|
Date: Tue, 1 Mar 2016 14:32:43 -0600
|
||||||
Subject: [PATCH] Show 'Paper' in client crashes, server lists, and Mojang
|
Subject: [PATCH] Show 'Paper' in client crashes, server lists, and Mojang
|
||||||
|
@ -46,10 +46,10 @@ index 3f27fe6..52155e8 100644
|
||||||
private final String bukkitVersion = Versioning.getBukkitVersion();
|
private final String bukkitVersion = Versioning.getBukkitVersion();
|
||||||
private final Logger logger = Logger.getLogger("Minecraft");
|
private final Logger logger = Logger.getLogger("Minecraft");
|
||||||
diff --git a/src/main/java/org/spigotmc/WatchdogThread.java b/src/main/java/org/spigotmc/WatchdogThread.java
|
diff --git a/src/main/java/org/spigotmc/WatchdogThread.java b/src/main/java/org/spigotmc/WatchdogThread.java
|
||||||
index 94a3d42..3ed983c 100644
|
index 94a3d42..6898b56 100644
|
||||||
--- a/src/main/java/org/spigotmc/WatchdogThread.java
|
--- a/src/main/java/org/spigotmc/WatchdogThread.java
|
||||||
+++ b/src/main/java/org/spigotmc/WatchdogThread.java
|
+++ b/src/main/java/org/spigotmc/WatchdogThread.java
|
||||||
@@ -19,7 +19,7 @@ public class WatchdogThread extends Thread
|
@@ -19,14 +19,14 @@ public class WatchdogThread extends Thread
|
||||||
|
|
||||||
private WatchdogThread(long timeoutTime, boolean restart)
|
private WatchdogThread(long timeoutTime, boolean restart)
|
||||||
{
|
{
|
||||||
|
@ -58,6 +58,14 @@ index 94a3d42..3ed983c 100644
|
||||||
this.timeoutTime = timeoutTime;
|
this.timeoutTime = timeoutTime;
|
||||||
this.restart = restart;
|
this.restart = restart;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void doStart(int timeoutTime, boolean restart)
|
||||||
|
{
|
||||||
|
- if ( instance == null )
|
||||||
|
+ if ( !Boolean.getBoolean("disable.watchdog") && instance == null ) // Paper - Add property to disable
|
||||||
|
{
|
||||||
|
instance = new WatchdogThread( timeoutTime * 1000L, restart );
|
||||||
|
instance.start();
|
||||||
@@ -56,9 +56,9 @@ public class WatchdogThread extends Thread
|
@@ -56,9 +56,9 @@ public class WatchdogThread extends Thread
|
||||||
{
|
{
|
||||||
Logger log = Bukkit.getServer().getLogger();
|
Logger log = Bukkit.getServer().getLogger();
|
||||||
|
@ -80,5 +88,5 @@ index 94a3d42..3ed983c 100644
|
||||||
log.log( Level.SEVERE, "------------------------------" );
|
log.log( Level.SEVERE, "------------------------------" );
|
||||||
//
|
//
|
||||||
--
|
--
|
||||||
2.8.1
|
2.8.2.windows.1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue