fail web seed tests quicker

This commit is contained in:
Arvid Norberg 2013-10-06 17:03:59 +00:00
parent 7adbeae273
commit b94a13f94a
1 changed files with 3 additions and 1 deletions

View File

@ -155,7 +155,9 @@ static void test_transfer(session& ses, boost::intrusive_ptr<torrent_info> torre
break;
}
// if (test_ban && peer_disconnects >= 1) break;
// if the web seed connection is disconnected, we're going to fail
// the test. make sure to do so quickly
if (peer_disconnects >= 1) break;
if (s.is_seeding /* && ss.download_rate == 0.f*/)
{