From: Chocobozzz Date: Mon, 18 Jul 2016 14:16:47 +0000 (+0200) Subject: Server: fix ipc bug X-Git-Tag: v0.0.1-alpha~831 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5495c83a712340a4b091be7dfce4f9efa7f92e99;p=oweals%2Fpeertube.git Server: fix ipc bug --- diff --git a/package.json b/package.json index 115f2e940..df038d052 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/server/lib/webtorrent.js b/server/lib/webtorrent.js index 9960737f2..bcd30139e 100644 --- a/server/lib/webtorrent.js +++ b/server/lib/webtorrent.js @@ -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) })