minor adjustment to onvif events init

video-slicer-reencoder
Moe 2022-08-31 12:20:24 -07:00
parent 0a11b5e680
commit b3a27f43e3
1 changed files with 2 additions and 2 deletions

View File

@ -72,11 +72,11 @@ module.exports = function(s,config,lang){
}
try{
onvifEventControllers[onvifIdKey].close()
delete(onvifEventControllers[onvifIdKey])
s.debugLog('ONVIF Event Module Warning : This could cause a memory leak?')
}catch(err){
console.log('ONVIF Event Module Error', err);
s.debugLog('ONVIF Event Module Error', err);
}
delete(onvifEventControllers[onvifIdKey])
if(monitorMode !== 'stop'){
startMotion(onvifId,monitorConfig).then((detector) => {
onvifEventControllers[onvifIdKey] = detector;