don't restart the swarm after downloading metadata from magnet links

This commit is contained in:
Arvid Norberg 2012-03-27 00:24:09 +00:00
parent b58bab637c
commit d5ef64ddb2
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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())
{