]>
Commit | Line | Data |
---|---|---|
9f10b292 | 1 | 'use strict' |
8c308c2b | 2 | |
f0f5567b | 3 | const logger = require('./logger') |
8c308c2b | 4 | |
f0f5567b | 5 | const utils = { |
9f10b292 C |
6 | cleanForExit: cleanForExit |
7 | } | |
8c308c2b | 8 | |
9f10b292 C |
9 | function cleanForExit (webtorrent_process) { |
10 | logger.info('Gracefully exiting.') | |
11 | process.kill(-webtorrent_process.pid) | |
12 | } | |
0ae2e7f7 | 13 | |
9f10b292 | 14 | // --------------------------------------------------------------------------- |
c45f7f84 | 15 | |
9f10b292 | 16 | module.exports = utils |