Skip to content

Commit bc7aa55

Browse files
committed
Do not spin the watchdog thread while server is booting
1 parent 7348737 commit bc7aa55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ public void run() {
3838
return;
3939
}
4040
if(lastTickStart.getAsLong() < 0) {
41+
try {
42+
Thread.sleep(10000);
43+
} catch(InterruptedException ignored) {}
4144
continue;
4245
}
4346
long curTime = Util.getMillis();

0 commit comments

Comments
 (0)