fixed issue where web peers would be connected before files were checked

This commit is contained in:
Arvid Norberg 2009-02-22 20:19:58 +00:00
parent fbc6910335
commit 658b7309d3
2 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,8 @@ release 0.14.3
* added python binding for create_torrent
* fixed boost-1.38 build
* fixed bug where web seeds would be connected before the files
were checked
release 0.14.2

View File

@ -4674,7 +4674,7 @@ namespace libtorrent
}
// if we have everything we want we don't need to connect to any web-seed
if (!is_finished() && !m_web_seeds.empty())
if (!is_finished() && !m_web_seeds.empty() && m_files_checked)
{
// keep trying web-seeds if there are any
// first find out which web seeds we are connected to