diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2015-11-02 22:19:39 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2015-11-03 08:10:30 +0100 |
commit | 0ae2e7f73c24779f8c99453fb02491382cc0520e (patch) | |
tree | f7bd68672746107c5bcc91686fef48c0f5c11bf2 /src/webtorrent.js | |
parent | 3a443402a6f22e4ac1fd80af62abfef7efd6d7a4 (diff) | |
download | PeerTube-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/webtorrent.js')
-rw-r--r-- | src/webtorrent.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/webtorrent.js b/src/webtorrent.js index 840f97671..18ae6b6ba 100644 --- a/src/webtorrent.js +++ b/src/webtorrent.js | |||
@@ -83,5 +83,9 @@ | |||
83 | ipc.of[nodeKey].emit(processKey + '.ready') | 83 | ipc.of[nodeKey].emit(processKey + '.ready') |
84 | console.log('Ready.') | 84 | console.log('Ready.') |
85 | }) | 85 | }) |
86 | |||
87 | process.on('uncaughtException', function (e) { | ||
88 | ipc.of[nodeKey].emit(processKey + '.exception', { exception: e }) | ||
89 | }) | ||
86 | } | 90 | } |
87 | })() | 91 | })() |