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