Don't force the trackers to scrape when rTorrent first starts

rTorrent will do this gradually, so we can start connecting to peers right away.

This patch shaves approximately 5 minutes off the start time with thousands of torrents.
This commit is contained in:
stickz
2021-11-21 23:12:50 -05:00
committed by Jari Sundell
parent 92bec88d09
commit c86f0d0333
+3
View File
@@ -275,6 +275,9 @@ DownloadFactory::receive_success() {
if (!rpc::call_command_value("trackers.use_udp"))
download->enable_udp_trackers(false);
// Don't force the trackers to scrape when rTorrent first starts
download->set_resume_flags(torrent::Download::start_skip_tracker);
// Check first if we already have these values set in the session
// torrent, so that it is safe to change the values.