forked from premiere/premiere-libtorrent
fixed policy::peer cast bug (introduced when optimizing the peer allocation)
This commit is contained in:
parent
7fb7ebfa10
commit
c8066aabd8
|
@ -1181,7 +1181,7 @@ namespace aux {
|
|||
for (policy::iterator j = p.begin_peer()
|
||||
, end(p.end_peer()); j != end; ++j)
|
||||
{
|
||||
policy::peer* pe = (policy::peer*)&(*j);
|
||||
policy::peer* pe = *j;
|
||||
|
||||
if (pe->last_optimistically_unchoked < four_hours)
|
||||
pe->last_optimistically_unchoked = 0;
|
||||
|
|
Loading…
Reference in New Issue