Dieser Commit ist enthalten in:
Ursprung
7639a6ad46
Commit
b673dffe4c
@ -50,7 +50,7 @@ public class CrashDetector {
|
|||||||
private void run() {
|
private void run() {
|
||||||
while (run) {
|
while (run) {
|
||||||
long curTime = System.currentTimeMillis();
|
long curTime = System.currentTimeMillis();
|
||||||
if(curTime + TIMEOUT > lastTick.get()) {
|
if(curTime > lastTick.get() + TIMEOUT) {
|
||||||
SWException.log(Bukkit.getServer().getVersion() + " server hung for " + (curTime - lastTick.get()) + "ms, ", Arrays.stream(mainThread.getStackTrace()).map(StackTraceElement::toString).collect(Collectors.joining("\n")));
|
SWException.log(Bukkit.getServer().getVersion() + " server hung for " + (curTime - lastTick.get()) + "ms, ", Arrays.stream(mainThread.getStackTrace()).map(StackTraceElement::toString).collect(Collectors.joining("\n")));
|
||||||
lastTick.set(curTime);
|
lastTick.set(curTime);
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren