mirror of
https://github.com/Dark98/SliceBeam.git
synced 2026-07-03 00:38:53 +00:00
Schedule truetime as non-critical task
This commit is contained in:
@@ -9,7 +9,7 @@ public class TrueTimeTask extends BootTask {
|
||||
super(() -> {
|
||||
for (int i = 0; i < 2; i++) {
|
||||
try {
|
||||
TrueTime.build().withNtpHost("1.ru.pool.ntp.org").initialize();
|
||||
TrueTime.build().withNtpHost("1.ru.pool.ntp.org").withConnectionTimeout(300).initialize();
|
||||
break;
|
||||
} catch (IOException ignore) {
|
||||
try {
|
||||
@@ -19,5 +19,6 @@ public class TrueTimeTask extends BootTask {
|
||||
}
|
||||
});
|
||||
onWorker();
|
||||
nonCritical = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user