catch the thread

This commit is contained in:
Milos Kozak 2018-04-05 23:28:17 +02:00
parent e5bf36bfe3
commit a3811b503f

View file

@ -150,13 +150,13 @@ public abstract class PluginBase {
protected void onStart() {
if (getType() == PluginType.PUMP) {
new Thread(() -> {
SystemClock.sleep(3000);
try {
try {
new Thread(() -> {
SystemClock.sleep(3000);
ConfigBuilderPlugin.getCommandQueue().readStatus("Pump driver changed.", null);
} catch (Exception ignored) { // Thread fail to start in tests
}
}).start();
}).start();
} catch (Exception ignored) { // Thread fail to start in tests
}
}
}