mirror of
https://github.com/Dark98/SliceBeam.git
synced 2026-12-06 06:07:16 +00:00
Schedule truetime as non-critical task
This commit is contained in:
1 parent
8529d94899
commit
e1fe683154
5 files changed
+35
-6
No files matched your search
@@ -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