Revert: Combo: retry twice to establish connection before giving up.

Only increases number of failed connection attempts.
This commit is contained in:
Johannes Mockenhaupt 2018-02-08 22:15:33 +01:00
parent 9c95a75ede
commit 7fa51a9248
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -912,9 +912,6 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
private CommandResult runOnConnectChecks() {
// connect, get status and check if an alarm is active
CommandResult preCheckResult = ruffyScripter.readPumpState();
for (int retries = 2; !preCheckResult.success && retries > 0; retries--) {
preCheckResult = ruffyScripter.readPumpState();
}
if (!preCheckResult.success) {
return preCheckResult;
}