Fix watchdog crash on server start

This commit is contained in:
embeddedt 2024-06-01 13:37:50 -04:00
parent 3a190a56b4
commit 5d7813bf3e
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -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) {