mirror of
https://github.com/PaperMC/Paper.git
synced 2025-04-18 01:45:58 +02:00
Fix watchdog restarting on short timeout (#1344)
This commit is contained in:
parent
69928187c9
commit
093dd0a9b9
@ -9,7 +9,7 @@ thread dumps at an interval until the point of crash.
|
|||||||
This will help diagnose what was going on in that time before the crash.
|
This will help diagnose what was going on in that time before the crash.
|
||||||
|
|
||||||
diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperConfig.java b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
||||||
index a5ff014e33..332e90f86b 100644
|
index a5ff014e3..332e90f86 100644
|
||||||
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
--- a/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
||||||
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
+++ b/src/main/java/com/destroystokyo/paper/PaperConfig.java
|
||||||
@@ -0,0 +0,0 @@ import org.bukkit.configuration.InvalidConfigurationException;
|
@@ -0,0 +0,0 @@ import org.bukkit.configuration.InvalidConfigurationException;
|
||||||
@ -37,7 +37,7 @@ index a5ff014e33..332e90f86b 100644
|
|||||||
public static int tabSpamLimit = 500;
|
public static int tabSpamLimit = 500;
|
||||||
private static void tabSpamLimiters() {
|
private static void tabSpamLimiters() {
|
||||||
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||||
index 0399a48e19..e0546e3dd2 100644
|
index 0399a48e1..e0546e3dd 100644
|
||||||
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||||
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java
|
||||||
@@ -0,0 +0,0 @@ public abstract class MinecraftServer implements ICommandListener, Runnable, IAs
|
@@ -0,0 +0,0 @@ public abstract class MinecraftServer implements ICommandListener, Runnable, IAs
|
||||||
@ -49,7 +49,7 @@ index 0399a48e19..e0546e3dd2 100644
|
|||||||
long start = System.nanoTime(), lastTick = start - TICK_TIME, catchupTime = 0, curTime, wait, tickSection = start; // Paper - Further improve server tick loop
|
long start = System.nanoTime(), lastTick = start - TICK_TIME, catchupTime = 0, curTime, wait, tickSection = start; // Paper - Further improve server tick loop
|
||||||
while (this.isRunning) {
|
while (this.isRunning) {
|
||||||
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
||||||
index 4f9fd4bc60..2cdd9aaf81 100644
|
index 4f9fd4bc6..2cdd9aaf8 100644
|
||||||
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
||||||
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
||||||
@@ -0,0 +0,0 @@ public class SpigotConfig
|
@@ -0,0 +0,0 @@ public class SpigotConfig
|
||||||
@ -62,7 +62,7 @@ index 4f9fd4bc60..2cdd9aaf81 100644
|
|||||||
|
|
||||||
public static boolean bungee;
|
public static boolean bungee;
|
||||||
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 57a4748a30..28a9e2b96f 100644
|
index 57a4748a3..93dc69835 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
|
||||||
@@ -0,0 +0,0 @@ import java.lang.management.MonitorInfo;
|
@@ -0,0 +0,0 @@ import java.lang.management.MonitorInfo;
|
||||||
@ -145,11 +145,12 @@ index 57a4748a30..28a9e2b96f 100644
|
|||||||
+
|
+
|
||||||
log.log( Level.SEVERE, "------------------------------" );
|
log.log( Level.SEVERE, "------------------------------" );
|
||||||
|
|
||||||
|
+ if ( isLongTimeout )
|
||||||
|
+ {
|
||||||
if ( restart )
|
if ( restart )
|
||||||
{
|
{
|
||||||
RestartCommand.restart();
|
RestartCommand.restart();
|
||||||
}
|
}
|
||||||
+ if (isLongTimeout) {
|
|
||||||
break;
|
break;
|
||||||
+ } // Paper end
|
+ } // Paper end
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user