mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[ipcamera] Fix Reolink will not update a new token after a disconnect. (#17629)
* Fix: Reolink will not update a new token after a disconnect. Signed-off-by: Matthew Skinner <matt@pcmus.com> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
c8022bd1d4
commit
473aa59aed
@ -1393,6 +1393,11 @@ public class IpCameraHandler extends BaseThingHandler {
|
||||
handle.cameraOnline(getThing().getUID().getId());
|
||||
}
|
||||
}
|
||||
if (thing.getThingTypeUID().getId().equals(REOLINK_THING) && cameraConfig.useToken
|
||||
&& authenticationJob == null) {
|
||||
logger.debug("Token thread for REOLINK was stopped, restarting it now.");
|
||||
authenticationJob = threadPool.scheduleWithFixedDelay(this::getReolinkToken, 0, 45, TimeUnit.MINUTES);
|
||||
}
|
||||
}
|
||||
|
||||
void snapshotIsFfmpeg() {
|
||||
|
Loading…
Reference in New Issue
Block a user