1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00
Peertube/helpers/utils.js
2016-02-05 18:03:20 +01:00

18 lines
364 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
})()