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()) {
|
if(!lastTickStart.isPresent()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(lastTickStart.getAsLong() < 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
long curTime = Util.getMillis();
|
long curTime = Util.getMillis();
|
||||||
long delta = curTime - lastTickStart.getAsLong();
|
long delta = curTime - lastTickStart.getAsLong();
|
||||||
if(delta > MAX_TICK_DELTA) {
|
if(delta > MAX_TICK_DELTA) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user