Removed the overly conservative check
This commit is contained in:
parent
afca0fbbe3
commit
82f167d50d
2 changed files with 1 additions and 4 deletions
|
|
@ -1168,6 +1168,7 @@ impl Session {
|
|||
}
|
||||
|
||||
let _e = managed_torrent.shared.span.clone().entered();
|
||||
|
||||
managed_torrent
|
||||
.start(peer_rx, opts.paused)
|
||||
.context("error starting torrent")?;
|
||||
|
|
|
|||
|
|
@ -399,10 +399,6 @@ impl ManagedTorrent {
|
|||
}
|
||||
}
|
||||
|
||||
if !start_paused && peer_rx.is_none() {
|
||||
bail!("logic bug: start(start_paused=false, peer_rx=None) called. peer_rx must be set if starting the torrent")
|
||||
}
|
||||
|
||||
let session = self
|
||||
.shared
|
||||
.session
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue