Store magnet URI once torrent has been parsed (#1686)

Store magnet URI once torrent has been parsed
This commit is contained in:
Feross Aboukhadijeh
2019-09-11 19:44:06 -07:00
committed by GitHub
3 changed files with 4 additions and 4 deletions

View File

@@ -147,7 +147,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)