Watchdog Thread.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2014-08-05 17:20:19 +01:00
parent 29a8c7f4b3
commit 496995ccaa
6 changed files with 328 additions and 30 deletions

View File

@@ -190,6 +190,15 @@
}
if (dedicatedserverproperties.enableQuery) {
@@ -197,7 +276,7 @@
this.rconThread = RconThread.create(this);
}
- if (this.getMaxTickLength() > 0L) {
+ if (false && this.getMaxTickLength() > 0L) { // Spigot - disable
Thread thread1 = new Thread(new ServerWatchdog(this));
thread1.setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandlerWithName(DedicatedServer.LOGGER));
@@ -293,6 +372,7 @@
this.queryThreadGs4.stop();
}