if umbind fails while service is dead, bind would never be called

This commit is contained in:
Sandra Keßler 2017-07-30 17:53:37 +02:00
parent afda4f9254
commit 1d3fee54e9

View file

@ -414,6 +414,12 @@ public class ComboPlugin implements PluginBase, PumpInterface {
try {
unbindRuffyService();
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();
SystemClock.sleep(5000);
} catch (Exception e) {