diff options
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 | })() |