aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-07-18 16:16:47 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-07-18 16:16:47 +0200
commit5495c83a712340a4b091be7dfce4f9efa7f92e99 (patch)
tree44c0173c394d8928c834cd32810354b1b5b4e520 /server
parentbddab65ae58e347693b777cccf791201fdbcff4d (diff)
downloadPeerTube-5495c83a712340a4b091be7dfce4f9efa7f92e99.tar.gz
PeerTube-5495c83a712340a4b091be7dfce4f9efa7f92e99.tar.zst
PeerTube-5495c83a712340a4b091be7dfce4f9efa7f92e99.zip
Server: fix ipc bug
Diffstat (limited to 'server')
-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