catch the thread
This commit is contained in:
parent
e5bf36bfe3
commit
a3811b503f
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue