aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/webtorrent.js6
1 files changed, 3 insertions, 3 deletions
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