Skip to content

Commit ec99892

Browse files
authored
[ipcamera] Fix Reolink will not update a new token after a disconnect. (openhab#17629)
* Fix: Reolink will not update a new token after a disconnect. Signed-off-by: Matthew Skinner <[email protected]>
1 parent 1feb253 commit ec99892

File tree

1 file changed

+5
-0
lines changed
  • bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler

1 file changed

+5
-0
lines changed

bundles/org.openhab.binding.ipcamera/src/main/java/org/openhab/binding/ipcamera/internal/handler/IpCameraHandler.java

+5
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,11 @@ private void bringCameraOnline() {
13931393
handle.cameraOnline(getThing().getUID().getId());
13941394
}
13951395
}
1396+
if (thing.getThingTypeUID().getId().equals(REOLINK_THING) && cameraConfig.useToken
1397+
&& authenticationJob == null) {
1398+
logger.debug("Token thread for REOLINK was stopped, restarting it now.");
1399+
authenticationJob = threadPool.scheduleWithFixedDelay(this::getReolinkToken, 0, 45, TimeUnit.MINUTES);
1400+
}
13961401
}
13971402

13981403
void snapshotIsFfmpeg() {

0 commit comments

Comments
 (0)