From 56905c04f704bee2fd759a9fea9523f66aba545a Mon Sep 17 00:00:00 2001 From: Moe Alam Date: Sun, 1 Nov 2020 09:10:35 -0800 Subject: [PATCH] make MJPEG Input Types Orphan Check when process closes --- libs/monitor.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/monitor.js b/libs/monitor.js index 3de856c3..2f1ebb52 100644 --- a/libs/monitor.js +++ b/libs/monitor.js @@ -1556,6 +1556,14 @@ module.exports = function(s,config,lang){ var wantedStatus = lang.Idle } s.sendMonitorStatus({id:e.id,ke:e.ke,status:wantedStatus}) + if(e.type === 'mjpeg'){ + setTimeout(() => { + s.orphanedVideoCheck({ + ke: e.ke, + mid: e.id, + },2,null,true) + },2000) + } s.onMonitorStopExtensions.forEach(function(extender){ extender(Object.assign(s.group[e.ke].rawMonitorConfigurations[e.id],{}),e) })