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:
parent
3a443402a6
commit
0ae2e7f73c
4 changed files with 33 additions and 9 deletions
|
@ -186,5 +186,10 @@
|
|||
return dec
|
||||
}
|
||||
|
||||
utils.cleanForExit = function (webtorrent_process) {
|
||||
logger.info('Gracefully exiting')
|
||||
process.kill(-webtorrent_process.pid)
|
||||
}
|
||||
|
||||
module.exports = utils
|
||||
})()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue