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