Skip to content

Commit

Permalink
[ipcamera] Fix Reolink events do not auto restart (#17581)
Browse files Browse the repository at this point in the history
* Fix Reolink events do not auto restart.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
  • Loading branch information
Skinah authored Oct 19, 2024
1 parent 5cd76ee commit 1c649d8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1593,6 +1593,11 @@ void pollCameraRunnable() {
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:
Expand Down

0 comments on commit 1c649d8

Please sign in to comment.