throw new Error('Received exception error from webtorrent process : ' + data.exception)
})
- const webtorrentProcess = spawn(pathUtils.join(__dirname, 'webtorrentProcess.js'), host, port, { detached: true })
+ const webtorrentProcess = spawn(pathUtils.join(__dirname, 'webtorrent-process.js'), host, port, { detached: true })
if (electronDebug === true) {
webtorrentProcess.stderr.on('data', function (data) {
magnetURI: received.magnetUri
}
- ipc.server.off(eventKey)
+ ipc.server.off(eventKey, '*')
callback(torrent)
})
files: received.files
}
- ipc.server.off(eventKey)
+ ipc.server.off(eventKey, '*')
callback(torrent)
})
let err = null
if (received.err) err = received.err
- ipc.server.off(eventKey)
+ ipc.server.off(eventKey, '*')
callback(err)
})