Store magnet URI once torrent has been parsed

Fixes #1035.
This commit is contained in:
Adam Gotlib
2016-10-15 17:00:03 +02:00
parent d8904aaf6e
commit d631ed1cc7
3 changed files with 4 additions and 4 deletions

View File

@@ -148,7 +148,7 @@ function addTorrentEvents (torrent) {
torrent.on('error', (err) =>
ipc.send('wt-error', torrent.key, err.message))
torrent.on('infoHash', () =>
ipc.send('wt-infohash', torrent.key, torrent.infoHash))
ipc.send('wt-parsed', torrent.key, torrent.infoHash, torrent.magnetURI))
torrent.on('metadata', torrentMetadata)
torrent.on('ready', torrentReady)
torrent.on('done', torrentDone)