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


                            
 



                                            
 
                                                                              
 
                      
'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