Server: fix ipc bug
This commit is contained in:
parent
bddab65ae5
commit
5495c83a71
2 changed files with 4 additions and 4 deletions
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue