[ipcamera] Fix Reolink events do not auto restart (#17581)

* Fix Reolink events do not auto restart.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Matthew Skinner 2024-10-19 16:13:14 +11:00 committed by Ciprian Pascu
parent 69c519e06d
commit c178939c91

View File

@ -1593,6 +1593,11 @@ public class IpCameraHandler extends BaseThingHandler {
sendHttpGET("/api.cgi?cmd=GetMdState&channel=" + cameraConfig.getNvrChannel() + reolinkAuth);
} else {
onvifCamera.sendOnvifRequest(RequestType.Renew, onvifCamera.subscriptionXAddr);
if (onvifCamera.pullMessageRequests.intValue() == 0) {
logger.debug("The alarm stream was not running for Reolink camera {}, re-starting it now",
cameraConfig.getIp());
onvifCamera.sendOnvifRequest(RequestType.PullMessages, onvifCamera.subscriptionXAddr);
}
}
break;
case DAHUA_THING: