diff --git a/camera.js b/camera.js index fc3c331c..dbc8317c 100644 --- a/camera.js +++ b/camera.js @@ -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) -} \ No newline at end of file +}