]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - src/utils.js
Forgot to add cxx to env
[github/Chocobozzz/PeerTube.git] / src / utils.js
index 7a5c7b7ea9c8ec8886ab77b03e5d5f4171ee30af..8ce1789f9b8030146501107abbcf517cdecf7be7 100644 (file)
     return dec
   }
 
+  utils.cleanForExit = function (webtorrent_process) {
+    logger.info('Gracefully exiting')
+    process.kill(-webtorrent_process.pid)
+  }
+
   module.exports = utils
 })()