Disable "Upload mode" when start preloaded torrent

This commit is contained in:
Vladimir Golovnev (Glassez)
2019-06-04 15:01:10 +03:00
parent 24ff369f29
commit b0af479ab9

View File

@@ -2155,6 +2155,9 @@ bool Session::addTorrent_impl(CreateTorrentParams params, const MagnetUri &magne
try {
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();
}
catch (std::exception &) {}