if umbind fails while service is dead, bind would never be called
This commit is contained in:
parent
afda4f9254
commit
1d3fee54e9
|
@ -414,6 +414,12 @@ public class ComboPlugin implements PluginBase, PumpInterface {
|
||||||
try {
|
try {
|
||||||
unbindRuffyService();
|
unbindRuffyService();
|
||||||
SystemClock.sleep(5000);
|
SystemClock.sleep(5000);
|
||||||
|
} catch (Exception e) {
|
||||||
|
/*String msg = "No connection to ruffy. Pump control not available.";
|
||||||
|
statusSummary = msg;
|
||||||
|
return new CommandResult().message(msg);*/
|
||||||
|
}
|
||||||
|
try {
|
||||||
bindRuffyService();
|
bindRuffyService();
|
||||||
SystemClock.sleep(5000);
|
SystemClock.sleep(5000);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in a new issue