From d5ef64ddb24e4edd4fcdd95b1591351ac88ae97d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 27 Mar 2012 00:24:09 +0000 Subject: [PATCH] don't restart the swarm after downloading metadata from magnet links --- ChangeLog | 1 + src/torrent.cpp | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index ab5de9617..91e7af89e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 0.16 release + * don't restart the swarm after downloading metadata from magnet links * lower the default tracker retry intervals * support banning web seeds sending corrupt data * don't let hung outgoing connection attempts block incoming connections diff --git a/src/torrent.cpp b/src/torrent.cpp index 6ba342283..9c2530319 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -6133,12 +6133,15 @@ namespace libtorrent // calling pause will also trigger the auto managed // recalculation - if (m_auto_managed) pause(); - - // if this is an auto managed torrent, force a recalculation - // of which torrents to have active + // if we just got here by downloading the metadata, + // just keep going, no need to disconnect all peers just + // to restart the torrent in a second if (m_auto_managed) + { + // if this is an auto managed torrent, force a recalculation + // of which torrents to have active m_ses.m_auto_manage_time_scaler = 2; + } if (!is_seed()) {