mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Disable "Upload mode" when start preloaded torrent
This commit is contained in:
parent
24ff369f29
commit
b0af479ab9
1 changed files with 3 additions and 0 deletions
|
@ -2155,6 +2155,9 @@ bool Session::addTorrent_impl(CreateTorrentParams params, const MagnetUri &magne
|
||||||
|
|
||||||
try {
|
try {
|
||||||
handle.auto_managed(false);
|
handle.auto_managed(false);
|
||||||
|
// Preloaded torrent is in "Upload mode" so we need to disable it
|
||||||
|
// otherwise the torrent never be downloaded (until application restart)
|
||||||
|
handle.set_upload_mode(false);
|
||||||
handle.pause();
|
handle.pause();
|
||||||
}
|
}
|
||||||
catch (std::exception &) {}
|
catch (std::exception &) {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue