childNode adjustments

obj-track-as-separate-option
Moe 2023-10-26 10:26:33 -07:00
parent 054a53719d
commit c011477531
2 changed files with 5 additions and 1 deletions

View File

@ -67,7 +67,7 @@ module.exports = function(s,config,lang,app,io){
})
}else{
s.debugLog('Child Node Force Disconnected!',new Date(),ipAddress)
client.destroy()
client.disconnect()
}
}
client.on('message',onAuthenticate)

View File

@ -8,6 +8,7 @@ const spawn = require('child_process').spawn;
const connectionTester = require('connection-tester')
const SoundDetection = require('shinobi-sound-detection')
const streamViewerCountTimeouts = {}
const { createQueueAwaited } = require('../common.js')
module.exports = (s,config,lang) => {
const {
applyPartialToConfiguration,
@ -1431,6 +1432,9 @@ module.exports = (s,config,lang) => {
const typeIsLocal = e.type === 'local'
const monitorConfig = theGroup.rawMonitorConfigurations[monitorId]
const doPingTest = e.type !== 'socket' && e.type !== 'dashcam' && e.protocol !== 'udp' && e.type !== 'local' && e.details.skip_ping !== '1';
if(!theGroup.startMonitorInQueue){
theGroup.startMonitorInQueue = createQueueAwaited(0.5, 1)
}
const startMonitorInQueue = theGroup.startMonitorInQueue
if(!activeMonitor.isStarted)return;
// e = monitor object