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

                            
 



                                            
 
                                                                              
 
                      
'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