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 'left' parameter on seed #1701

Merged
merged 4 commits into from Aug 18, 2019
Merged
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 'left' parameter on seed

  • Loading branch information
alxhotel committed Aug 11, 2019
commit cd43d50b15e17abd575b2aa1ac0b07010c84324d
@@ -300,6 +300,14 @@ class Torrent extends EventEmitter {
})
}

if (this.info) {
// if full metadata was included in initial torrent id, use it immediately. Otherwise,
// wait for torrent-discovery to find peers and ut_metadata to get the metadata.
this._onMetadata(this)
} else if (this.xs) {
this._getMetadataFromServer()
}

// begin discovering peers via DHT and trackers
this.discovery = new Discovery({
infoHash: this.infoHash,
@@ -334,14 +342,6 @@ class Torrent extends EventEmitter {
this.discovery.on('warning', (err) => {
this.emit('warning', err)
})

if (this.info) {
// if full metadata was included in initial torrent id, use it immediately. Otherwise,
// wait for torrent-discovery to find peers and ut_metadata to get the metadata.
this._onMetadata(this)
} else if (this.xs) {
this._getMetadataFromServer()
}
}

_getMetadataFromServer () {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.