forked from premiere/premiere-libtorrent
fixed bug in smart_ban (introduced when policy::peer allocation was changed)
This commit is contained in:
parent
9523d88909
commit
a14bc56520
|
@ -182,7 +182,7 @@ namespace libtorrent { namespace
|
||||||
// there is no peer with this address anymore
|
// there is no peer with this address anymore
|
||||||
if (range.first == range.second) return;
|
if (range.first == range.second) return;
|
||||||
|
|
||||||
policy::peer* p = (policy::peer*)&(*range.first);
|
policy::peer* p = (*range.first);
|
||||||
block_entry e = {p, crc.final()};
|
block_entry e = {p, crc.final()};
|
||||||
|
|
||||||
std::map<piece_block, block_entry>::iterator i = m_block_crc.lower_bound(b);
|
std::map<piece_block, block_entry>::iterator i = m_block_crc.lower_bound(b);
|
||||||
|
|
Loading…
Reference in New Issue