fixed piece sorting bug of deadline pieces

This commit is contained in:
Arvid Norberg 2012-05-05 19:46:02 +00:00
parent 2c2bd49a4e
commit 7f2f705b49
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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;