fix
This commit is contained in:
parent
16b7898de9
commit
1271334f95
|
@ -1041,8 +1041,7 @@ namespace libtorrent
|
||||||
// peer that has taken over it.
|
// peer that has taken over it.
|
||||||
boost::optional<tcp::endpoint> peer
|
boost::optional<tcp::endpoint> peer
|
||||||
= t->picker().get_downloader(block_finished);
|
= t->picker().get_downloader(block_finished);
|
||||||
assert(!t->picker().is_finished(block_finished));
|
if (!t->picker().is_finished(block_finished) && peer)
|
||||||
if (peer)
|
|
||||||
{
|
{
|
||||||
peer_connection* pc = t->connection_for(*peer);
|
peer_connection* pc = t->connection_for(*peer);
|
||||||
if (pc && pc != this)
|
if (pc && pc != this)
|
||||||
|
|
Loading…
Reference in New Issue