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