fix missing re-connect if first request timed out (#9955)

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
This commit is contained in:
J-N-K 2021-01-25 22:51:43 +01:00 committed by GitHub
parent 27b8de419a
commit 781a824b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,10 @@ public class DeconzBridgeHandler extends BaseBridgeHandler implements WebSocketC
} else {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.NONE);
}
logger.warn("Initial full state parsing failed", e);
logger.warn("Initial full state request or result parsing failed", e);
if (!thingDisposing) {
scheduledFuture = scheduler.schedule(this::initializeBridgeState, POLL_FREQUENCY_SEC, TimeUnit.SECONDS);
}
return null;
});
}