1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00
Peertube/server/helpers/utils.js
2016-03-16 22:29:27 +01:00

16 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