mirror of https://github.com/Chocobozzz/PeerTube
17 lines
326 B
JavaScript
17 lines
326 B
JavaScript
'use strict'
|
|
|
|
const logger = require('./logger')
|
|
|
|
const utils = {
|
|
cleanForExit: cleanForExit
|
|
}
|
|
|
|
function cleanForExit (webtorrent_process) {
|
|
logger.info('Gracefully exiting.')
|
|
process.kill(-webtorrent_process.pid)
|
|
}
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
module.exports = utils
|