Skip to content

Commit 3bad8f5

Browse files
committed
Avoid "timeout is negative" exception in watchdog
1 parent 72fc158 commit 3bad8f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/src/main/java/org/embeddedt/modernfix/world/IntegratedWatchdog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public void run() {
4545
if(delta > MAX_TICK_DELTA) {
4646
LOGGER.error("A single server tick has taken {}, more than {} milliseconds", delta, MAX_TICK_DELTA);
4747
LOGGER.error(ThreadDumper.obtainThreadDump());
48+
delta = 0;
4849
}
4950
try {
5051
Thread.sleep(MAX_TICK_DELTA - delta);

0 commit comments

Comments
 (0)