undo some experiments
parent
0d935c1778
commit
f22d4d1800
|
|
@ -37,9 +37,6 @@ module.exports = (s,config,lang) => {
|
||||||
selectNodeForOperation,
|
selectNodeForOperation,
|
||||||
bindMonitorToChildNode
|
bindMonitorToChildNode
|
||||||
} = require('../childNode/utils.js')(s,config,lang)
|
} = require('../childNode/utils.js')(s,config,lang)
|
||||||
const {
|
|
||||||
asyncSetTimeout,
|
|
||||||
} = require('../basic/utils.js')(process.cwd(),config)
|
|
||||||
const isMasterNode = (
|
const isMasterNode = (
|
||||||
(
|
(
|
||||||
config.childNodes.enabled === true &&
|
config.childNodes.enabled === true &&
|
||||||
|
|
@ -769,7 +766,6 @@ module.exports = (s,config,lang) => {
|
||||||
code: 4,
|
code: 4,
|
||||||
});
|
});
|
||||||
await s.camera('stop',e)
|
await s.camera('stop',e)
|
||||||
await asyncSetTimeout(2500)
|
|
||||||
if(e.mode !== 'restart')await s.camera(`${e.mode}`,e);
|
if(e.mode !== 'restart')await s.camera(`${e.mode}`,e);
|
||||||
}
|
}
|
||||||
function monitorAddViewer(e,cn){
|
function monitorAddViewer(e,cn){
|
||||||
|
|
@ -899,7 +895,7 @@ module.exports = (s,config,lang) => {
|
||||||
status: lang.Restarting,
|
status: lang.Restarting,
|
||||||
code: 4,
|
code: 4,
|
||||||
})
|
})
|
||||||
await monitorRestart(monitorConfig)
|
await launchMonitorProcesses(monitorConfig)
|
||||||
s.userLog({
|
s.userLog({
|
||||||
ke: groupKey,
|
ke: groupKey,
|
||||||
mid: monitorId,
|
mid: monitorId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue