catch the thread
This commit is contained in:
parent
e5bf36bfe3
commit
a3811b503f
1 changed files with 6 additions and 6 deletions
|
@ -150,13 +150,13 @@ public abstract class PluginBase {
|
||||||
|
|
||||||
protected void onStart() {
|
protected void onStart() {
|
||||||
if (getType() == PluginType.PUMP) {
|
if (getType() == PluginType.PUMP) {
|
||||||
new Thread(() -> {
|
try {
|
||||||
SystemClock.sleep(3000);
|
new Thread(() -> {
|
||||||
try {
|
SystemClock.sleep(3000);
|
||||||
ConfigBuilderPlugin.getCommandQueue().readStatus("Pump driver changed.", null);
|
ConfigBuilderPlugin.getCommandQueue().readStatus("Pump driver changed.", null);
|
||||||
} catch (Exception ignored) { // Thread fail to start in tests
|
}).start();
|
||||||
}
|
} catch (Exception ignored) { // Thread fail to start in tests
|
||||||
}).start();
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue