minor adjustment to onvif events init
parent
0a11b5e680
commit
b3a27f43e3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue