mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Small fix when retying token (#16280)
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
This commit is contained in:
parent
08b749dd05
commit
8b814f8ebe
@ -198,7 +198,7 @@ public class HydrawiseAccountHandler extends BaseBridgeHandler implements Access
|
|||||||
OAuthClientService oAuthService = this.oAuthService;
|
OAuthClientService oAuthService = this.oAuthService;
|
||||||
if (oAuthService != null) {
|
if (oAuthService != null) {
|
||||||
oAuthService.refreshToken();
|
oAuthService.refreshToken();
|
||||||
initPolling(0, MIN_REFRESH_SECONDS);
|
initPolling(0, refresh);
|
||||||
}
|
}
|
||||||
} catch (OAuthException | IOException | OAuthResponseException e) {
|
} catch (OAuthException | IOException | OAuthResponseException e) {
|
||||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, e.getMessage());
|
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, e.getMessage());
|
||||||
|
Loading…
Reference in New Issue
Block a user