mirror of
https://github.com/ChronosX88/Influence.git
synced 2024-11-09 20:11:01 +00:00
Added default NTP server
This commit is contained in:
parent
2a78d7bd81
commit
daa4b4a426
@ -23,6 +23,7 @@ import io.github.chronosx88.influence.XMPPConnection;
|
|||||||
public class AppHelper extends MultiDexApplication {
|
public class AppHelper extends MultiDexApplication {
|
||||||
private static Application instance;
|
private static Application instance;
|
||||||
public final static String APP_NAME = "Influence";
|
public final static String APP_NAME = "Influence";
|
||||||
|
public final static String DEFAULT_NTP_SERVER = "0.europe.pool.ntp.org";
|
||||||
|
|
||||||
private static String jid;
|
private static String jid;
|
||||||
private static RoomHelper chatDB;
|
private static RoomHelper chatDB;
|
||||||
@ -84,7 +85,7 @@ public class AppHelper extends MultiDexApplication {
|
|||||||
boolean isTrueTimeIsOn = false;
|
boolean isTrueTimeIsOn = false;
|
||||||
while(!isTrueTimeIsOn) {
|
while(!isTrueTimeIsOn) {
|
||||||
try {
|
try {
|
||||||
TrueTime.build().initialize();
|
TrueTime.build().withNtpHost(DEFAULT_NTP_SERVER).initialize();
|
||||||
isTrueTimeIsOn = true;
|
isTrueTimeIsOn = true;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
Loading…
Reference in New Issue
Block a user