remove unused catch

This commit is contained in:
Milos Kozak 2018-04-07 16:43:20 +02:00
parent 2fee7f3186
commit 7a74364af6

View file

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