diff options
Diffstat (limited to 'src/utils.js')
-rw-r--r-- | src/utils.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils.js b/src/utils.js index 7a5c7b7ea..8ce1789f9 100644 --- a/src/utils.js +++ b/src/utils.js | |||
@@ -186,5 +186,10 @@ | |||
186 | return dec | 186 | return dec |
187 | } | 187 | } |
188 | 188 | ||
189 | utils.cleanForExit = function (webtorrent_process) { | ||
190 | logger.info('Gracefully exiting') | ||
191 | process.kill(-webtorrent_process.pid) | ||
192 | } | ||
193 | |||
189 | module.exports = utils | 194 | module.exports = utils |
190 | })() | 195 | })() |