Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parsed torrent #1770

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

Fix invalid xt value for magnets

  • Loading branch information
alxhotel committed Oct 28, 2019
commit ae0ad0f6174852a05844553ba08b6a002303fe95
@@ -196,7 +196,7 @@ class Torrent extends EventEmitter {

let parsedTorrent
try { parsedTorrent = parseTorrent(torrentId) } catch (err) {}
if (parsedTorrent) {
if (parsedTorrent && parsedTorrent.infoHash) {
// Attempt to set infoHash property synchronously
this.infoHash = parsedTorrent.infoHash
this._debugId = parsedTorrent.infoHash.toString('hex').substring(0, 7)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.