mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Add debug property to disable the watchdog
Use at your own risk, we will not waste our time with support if your server times out and you cant put 2+2 together to figure out that its because you killed the watchdoge
This commit is contained in:
parent
5c5c2b0a22
commit
139c4ccf0d
1 changed files with 5 additions and 0 deletions
|
@ -59,6 +59,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
this.restart = restart;
|
||||
}
|
||||
@@ -0,0 +0,0 @@ public class WatchdogThread extends Thread
|
||||
while ( !stopping )
|
||||
{
|
||||
//
|
||||
- if ( lastTick != 0 && System.currentTimeMillis() > lastTick + timeoutTime )
|
||||
+ if ( !Boolean.getBoolean("disable.watchdog") && lastTick != 0 && System.currentTimeMillis() > lastTick + timeoutTime ) // Paper - Add property to disable
|
||||
{
|
||||
Logger log = Bukkit.getServer().getLogger();
|
||||
log.log( Level.SEVERE, "The server has stopped responding!" );
|
||||
|
|
Loading…
Reference in a new issue