X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Fwebtorrent.js;h=b72bc500dd93b9871bfa8bb177553cde1d519ecf;hb=529594d2f014356956fdc0a033c38d1cd581c3ae;hp=840f97671aed2cc42d4fb90e199ce97dc8327b97;hpb=8c308c2bf7f658945d80be9d5880361238635f5b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/src/webtorrent.js b/src/webtorrent.js index 840f97671..b72bc500d 100644 --- a/src/webtorrent.js +++ b/src/webtorrent.js @@ -27,7 +27,7 @@ var path = args.path var _id = data._id - wt.seed(path, function (torrent) { + wt.seed(path, { announceList: '' }, function (torrent) { var to_send = { magnetUri: torrent.magnetURI } @@ -83,5 +83,9 @@ ipc.of[nodeKey].emit(processKey + '.ready') console.log('Ready.') }) + + process.on('uncaughtException', function (e) { + ipc.of[nodeKey].emit(processKey + '.exception', { exception: e }) + }) } })()