fixed piece sorting bug of deadline pieces
This commit is contained in:
parent
2c2bd49a4e
commit
7f2f705b49
|
@ -1,4 +1,5 @@
|
|||
|
||||
* fixed piece sorting bug of deadline pieces
|
||||
* fixed python binding build on Mac OS and BSD
|
||||
* fixed UNC path normalization (on windows, unless UNC paths are disabled)
|
||||
* fixed possible crash when enabling multiple connections per IP
|
||||
|
|
|
@ -3654,7 +3654,7 @@ namespace libtorrent
|
|||
}
|
||||
while (i != m_time_critical_pieces.begin() && i->deadline < boost::prior(i)->deadline)
|
||||
{
|
||||
std::iter_swap(i, boost::next(i));
|
||||
std::iter_swap(i, boost::prior(i));
|
||||
--i;
|
||||
}
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue