1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

add robustness when we run the electron process and move the exit

controller inside the main js file
This commit is contained in:
Chocobozzz 2015-11-02 22:19:39 +01:00
parent 3a443402a6
commit 0ae2e7f73c
4 changed files with 33 additions and 9 deletions

View file

@ -186,5 +186,10 @@
return dec
}
utils.cleanForExit = function (webtorrent_process) {
logger.info('Gracefully exiting')
process.kill(-webtorrent_process.pid)
}
module.exports = utils
})()