aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-11-02 22:19:39 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-11-03 08:10:30 +0100
commit0ae2e7f73c24779f8c99453fb02491382cc0520e (patch)
treef7bd68672746107c5bcc91686fef48c0f5c11bf2 /src/utils.js
parent3a443402a6f22e4ac1fd80af62abfef7efd6d7a4 (diff)
downloadPeerTube-0ae2e7f73c24779f8c99453fb02491382cc0520e.tar.gz
PeerTube-0ae2e7f73c24779f8c99453fb02491382cc0520e.tar.zst
PeerTube-0ae2e7f73c24779f8c99453fb02491382cc0520e.zip
add robustness when we run the electron process and move the exit
controller inside the main js file
Diffstat (limited to 'src/utils.js')
-rw-r--r--src/utils.js5
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})()