aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--package.json2
-rw-r--r--server/lib/webtorrent.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/package.json b/package.json
index 115f2e940..df038d052 100644
--- a/package.json
+++ b/package.json
@@ -52,7 +52,7 @@
52 "mongoose": "^4.0.5", 52 "mongoose": "^4.0.5",
53 "morgan": "^1.5.3", 53 "morgan": "^1.5.3",
54 "multer": "^1.1.0", 54 "multer": "^1.1.0",
55 "node-ipc": "^7.0.0", 55 "node-ipc": "^8.0.0",
56 "node-sass": "^3.4.2", 56 "node-sass": "^3.4.2",
57 "openssl-wrapper": "^0.3.4", 57 "openssl-wrapper": "^0.3.4",
58 "password-generator": "^2.0.2", 58 "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) {
97 magnetURI: received.magnetUri 97 magnetURI: received.magnetUri
98 } 98 }
99 99
100 ipc.server.off(eventKey) 100 ipc.server.off(eventKey, '*')
101 callback(torrent) 101 callback(torrent)
102 }) 102 })
103 103
@@ -124,7 +124,7 @@ function add (magnetUri, callback) {
124 files: received.files 124 files: received.files
125 } 125 }
126 126
127 ipc.server.off(eventKey) 127 ipc.server.off(eventKey, '*')
128 callback(torrent) 128 callback(torrent)
129 }) 129 })
130 130
@@ -149,7 +149,7 @@ function remove (magnetUri, callback) {
149 let err = null 149 let err = null
150 if (received.err) err = received.err 150 if (received.err) err = received.err
151 151
152 ipc.server.off(eventKey) 152 ipc.server.off(eventKey, '*')
153 callback(err) 153 callback(err)
154 }) 154 })
155 155