]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - src/webtorrent.js
Fix announce list (don't use defaults)
[github/Chocobozzz/PeerTube.git] / src / webtorrent.js
index 840f97671aed2cc42d4fb90e199ce97dc8327b97..b72bc500dd93b9871bfa8bb177553cde1d519ecf 100644 (file)
@@ -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 })
+    })
   }
 })()