fixed piece sorting bug of deadline pieces
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user