]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Server: fix ipc bug
authorChocobozzz <florian.bigard@gmail.com>
Mon, 18 Jul 2016 14:16:47 +0000 (16:16 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Mon, 18 Jul 2016 14:16:47 +0000 (16:16 +0200)
package.json
server/lib/webtorrent.js

index 115f2e94081b89ff88a7eecc9c2148dbe7a9e463..df038d0523124ff7400786db2d6fea6a7a8f94ff 100644 (file)
@@ -52,7 +52,7 @@
     "mongoose": "^4.0.5",
     "morgan": "^1.5.3",
     "multer": "^1.1.0",
-    "node-ipc": "^7.0.0",
+    "node-ipc": "^8.0.0",
     "node-sass": "^3.4.2",
     "openssl-wrapper": "^0.3.4",
     "password-generator": "^2.0.2",
index 9960737f20bb76c44c334762cfc4e9b5adbd9a9d..bcd30139ef83d4c346e91acb4c0b0390eafed3f2 100644 (file)
@@ -97,7 +97,7 @@ function seed (path, callback) {
       magnetURI: received.magnetUri
     }
 
-    ipc.server.off(eventKey)
+    ipc.server.off(eventKey, '*')
     callback(torrent)
   })
 
@@ -124,7 +124,7 @@ function add (magnetUri, callback) {
       files: received.files
     }
 
-    ipc.server.off(eventKey)
+    ipc.server.off(eventKey, '*')
     callback(torrent)
   })
 
@@ -149,7 +149,7 @@ function remove (magnetUri, callback) {
     let err = null
     if (received.err) err = received.err
 
-    ipc.server.off(eventKey)
+    ipc.server.off(eventKey, '*')
     callback(err)
   })