Do not spin the watchdog thread while server is booting

This commit is contained in:
embeddedt 2024-07-07 20:52:06 -04:00
parent 7348737878
commit bc7aa5539c
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -38,6 +38,9 @@ public class IntegratedWatchdog extends Thread {
return;
}
if(lastTickStart.getAsLong() < 0) {
try {
Thread.sleep(10000);
} catch(InterruptedException ignored) {}
continue;
}
long curTime = Util.getMillis();