Skip to content

Commit

Permalink
Improve handling of interrupted request by alllowing retries
Browse files Browse the repository at this point in the history
Rebased

Signed-off-by: clinique <[email protected]>
Signed-off-by: [email protected] <[email protected]>
  • Loading branch information
clinique committed Mar 25, 2024
1 parent 0e8383e commit 9cf91cc
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,6 @@ public synchronized <T> T executeUri(URI uri, HttpMethod method, Class<T> clazz,
"@text/maximum-usage-reached [ \"%d\" ]".formatted(API_LIMIT_INTERVAL_S), null, null);
}
throw e;
// } catch (InterruptedException e) {
// Thread.currentThread().interrupt();
// updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR, e.getMessage());
// throw new NetatmoException("Request interrupted");
} catch (InterruptedException | TimeoutException | ExecutionException e) {
if (retryCount > 0) {
logger.debug("Request error, retry counter: {}", retryCount);
Expand Down

0 comments on commit 9cf91cc

Please sign in to comment.