src: update TickingThread
This commit is contained in:
@@ -2,6 +2,8 @@ package com.hypixel.hytale.server.core.util.thread;
|
||||
|
||||
import com.hypixel.hytale.logger.HytaleLogger;
|
||||
import com.hypixel.hytale.metrics.metric.HistoricMetric;
|
||||
import com.hypixel.hytale.server.core.HytaleServer;
|
||||
import com.hypixel.hytale.server.core.ShutdownReason;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
@@ -76,6 +78,7 @@ public abstract class TickingThread implements Runnable {
|
||||
Thread.currentThread().interrupt();
|
||||
} catch (Throwable var10) {
|
||||
HytaleLogger.getLogger().at(Level.SEVERE).withCause(var10).log("Exception in thread %s:", this.thread);
|
||||
HytaleServer.get().shutdownServer(ShutdownReason.CRASH.withMessage("TickingThread crash: " + var10.getMessage()));
|
||||
}
|
||||
|
||||
if (this.needsShutdown.getAndSet(false)) {
|
||||
|
||||
Reference in New Issue
Block a user