Child Node Framework Update : fix double insert video

montage-api
Moe 2021-11-26 19:42:59 -08:00
parent 5caa08aba1
commit 2a53d77cad
1 changed files with 15 additions and 9 deletions

View File

@ -1599,15 +1599,21 @@ module.exports = function(s,config,lang){
status: wantedStatus,
code: wantedStatusCode,
})
setTimeout(() => {
scanForOrphanedVideos({
ke: e.ke,
mid: e.id,
},{
forceCheck: true,
checkMax: 2
})
},2000)
if(
config.childNodes.enabled === true &&
config.childNodes.mode === 'master' ||
config.childNodes.enabled === false
){
setTimeout(() => {
scanForOrphanedVideos({
ke: e.ke,
mid: e.id,
},{
forceCheck: true,
checkMax: 2
})
},2000)
}
clearTimeout(s.group[e.ke].activeMonitors[e.id].onMonitorStartTimer)
s.onMonitorStopExtensions.forEach(function(extender){
extender(Object.assign(s.group[e.ke].rawMonitorConfigurations[e.id],{}),e)