Avoid "timeout is negative" exception in watchdog
This commit is contained in:
parent
dfb9378297
commit
b541e33e9c
|
|
@ -45,6 +45,7 @@ public class IntegratedWatchdog extends Thread {
|
|||
if(delta > MAX_TICK_DELTA) {
|
||||
LOGGER.error("A single server tick has taken {}, more than {} milliseconds", delta, MAX_TICK_DELTA);
|
||||
LOGGER.error(ThreadDumper.obtainThreadDump());
|
||||
delta = 0;
|
||||
}
|
||||
try {
|
||||
Thread.sleep(MAX_TICK_DELTA - delta);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user