This commit is contained in:
Arvid Norberg 2006-12-15 09:38:52 +00:00
parent 16b7898de9
commit 1271334f95
1 changed files with 1 additions and 2 deletions

View File

@ -1041,8 +1041,7 @@ namespace libtorrent
// peer that has taken over it.
boost::optional<tcp::endpoint> peer
= t->picker().get_downloader(block_finished);
assert(!t->picker().is_finished(block_finished));
if (peer)
if (!t->picker().is_finished(block_finished) && peer)
{
peer_connection* pc = t->connection_for(*peer);
if (pc && pc != this)