fixup: only set only_files if it was none
This commit is contained in:
parent
db420f3a52
commit
57db99e9b8
1 changed files with 4 additions and 1 deletions
|
|
@ -886,7 +886,10 @@ impl Session {
|
||||||
.as_id20()
|
.as_id20()
|
||||||
.context("magnet link didn't contain a BTv1 infohash")?;
|
.context("magnet link didn't contain a BTv1 infohash")?;
|
||||||
if let Some(so) = magnet.get_select_only() {
|
if let Some(so) = magnet.get_select_only() {
|
||||||
opts.only_files = Some(so);
|
// Only overwrite opts.only_files if user didn't specify
|
||||||
|
if opts.only_files.is_none() {
|
||||||
|
opts.only_files = Some(so);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let peer_rx = self.make_peer_rx(
|
let peer_rx = self.make_peer_rx(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue