catch SIGINT so we can Ctrl+C to close camera.js on the terminal
parent
5eaf62edd1
commit
0372337e09
|
|
@ -13,6 +13,9 @@ process.on('uncaughtException', function (err) {
|
|||
console.error('Uncaught Exception occured!');
|
||||
console.error(err.stack);
|
||||
});
|
||||
process.on('SIGINT', function() {
|
||||
process.exit();
|
||||
});
|
||||
var staticFFmpeg = false;
|
||||
try{
|
||||
staticFFmpeg = require('ffmpeg-static').path;
|
||||
|
|
@ -6751,4 +6754,4 @@ if(config.childNodes.mode === 'child'){
|
|||
}
|
||||
})
|
||||
},1500)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue