aboutsummaryrefslogblamecommitdiffhomepage
path: root/helpers/utils.js
blob: 92684ea8119480092e376e01bc42b3e08a46a198 (plain) (tree)
1
2
3
4
5
6
7
8
9


               

                                  
               
                              

   
                                              
                                      


                                         

                                                                                

                        
;(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
})()