Skip to content

Commit cc17576

Browse files
committed
[solaredge] Fix request lifecycle on failed HTTP responses
Signed-off-by: Ronny Grun <ronny.grun@t-online.de>
1 parent e731d52 commit cc17576

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

bundles/org.openhab.binding.solaredge/src/main/java/org/openhab/binding/solaredge/internal/command/AggregateDataUpdatePrivateApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ public void onComplete(@Nullable Result result) {
102102
logger.debug("onComplete()");
103103

104104
if (!HttpStatus.Code.OK.equals(getCommunicationStatus().getHttpCode())) {
105-
updateListenerStatus();
106105
if (retries++ < MAX_RETRIES) {
107106
handler.getWebInterface().enqueueCommand(this);
108107
}
@@ -116,5 +115,6 @@ public void onComplete(@Nullable Result result) {
116115
}
117116
}
118117
}
118+
updateListenerStatus();
119119
}
120120
}

bundles/org.openhab.binding.solaredge/src/main/java/org/openhab/binding/solaredge/internal/command/AggregateDataUpdatePublicApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ public void onComplete(@Nullable Result result) {
9494
logger.debug("onComplete()");
9595

9696
if (!HttpStatus.Code.OK.equals(getCommunicationStatus().getHttpCode())) {
97-
updateListenerStatus();
9897
if (retries++ < MAX_RETRIES) {
9998
handler.getWebInterface().enqueueCommand(this);
10099
}
@@ -108,5 +107,6 @@ public void onComplete(@Nullable Result result) {
108107
}
109108
}
110109
}
110+
updateListenerStatus();
111111
}
112112
}

bundles/org.openhab.binding.solaredge/src/main/java/org/openhab/binding/solaredge/internal/command/LiveDataUpdateMeterless.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public void onComplete(@Nullable Result result) {
6363
logger.debug("onComplete()");
6464

6565
if (!HttpStatus.Code.OK.equals(getCommunicationStatus().getHttpCode())) {
66-
updateListenerStatus();
6766
if (retries++ < MAX_RETRIES) {
6867
handler.getWebInterface().enqueueCommand(this);
6968
}
@@ -77,5 +76,6 @@ public void onComplete(@Nullable Result result) {
7776
}
7877
}
7978
}
79+
updateListenerStatus();
8080
}
8181
}

bundles/org.openhab.binding.solaredge/src/main/java/org/openhab/binding/solaredge/internal/command/LiveDataUpdatePrivateApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public void onComplete(@Nullable Result result) {
6363
logger.debug("onComplete()");
6464

6565
if (!HttpStatus.Code.OK.equals(getCommunicationStatus().getHttpCode())) {
66-
updateListenerStatus();
6766
if (retries++ < MAX_RETRIES) {
6867
handler.getWebInterface().enqueueCommand(this);
6968
}
@@ -77,5 +76,6 @@ public void onComplete(@Nullable Result result) {
7776
}
7877
}
7978
}
79+
updateListenerStatus();
8080
}
8181
}

bundles/org.openhab.binding.solaredge/src/main/java/org/openhab/binding/solaredge/internal/command/LiveDataUpdatePublicApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ protected String getURL() {
6262
public void onComplete(@Nullable Result result) {
6363
logger.debug("onComplete()");
6464
if (!HttpStatus.Code.OK.equals(getCommunicationStatus().getHttpCode())) {
65-
updateListenerStatus();
6665
if (retries++ < MAX_RETRIES) {
6766
handler.getWebInterface().enqueueCommand(this);
6867
}
@@ -76,5 +75,6 @@ public void onComplete(@Nullable Result result) {
7675
}
7776
}
7877
}
78+
updateListenerStatus();
7979
}
8080
}

0 commit comments

Comments
 (0)