Start KeepAliveService after pump init.

This commit is contained in:
Johannes Mockenhaupt 2017-10-25 17:49:23 +02:00 committed by AdrianLxM
parent 41dcf8d6f4
commit 4767809931

View file

@ -167,9 +167,6 @@ public class MainApp extends Application {
else
Answers.getInstance().logCustom(new CustomEvent("AppStart"));
startKeepAliveService();
Thread t = new Thread(new Runnable() {
@Override
public void run() {
@ -177,8 +174,9 @@ public class MainApp extends Application {
PumpInterface pump = MainApp.getConfigBuilder();
if (pump != null)
pump.refreshDataFromPump("Initialization");
startKeepAliveService();
}
});
}, "pump-initialization");
t.start();
}