Fix watchdog crash on server start
This commit is contained in:
parent
3a190a56b4
commit
5d7813bf3e
|
|
@ -37,6 +37,9 @@ public class IntegratedWatchdog extends Thread {
|
|||
if(!lastTickStart.isPresent()) {
|
||||
return;
|
||||
}
|
||||
if(lastTickStart.getAsLong() < 0) {
|
||||
continue;
|
||||
}
|
||||
long curTime = Util.getMillis();
|
||||
long delta = curTime - lastTickStart.getAsLong();
|
||||
if(delta > MAX_TICK_DELTA) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user