fixed invalid assert in session_impl::recalculate_unchoke_slots()
This commit is contained in:
@@ -2777,10 +2777,14 @@ namespace aux {
|
|||||||
{
|
{
|
||||||
if (prev != end)
|
if (prev != end)
|
||||||
{
|
{
|
||||||
|
boost::shared_ptr<torrent> t1 = (*prev)->associated_torrent().lock();
|
||||||
|
TORRENT_ASSERT(t1);
|
||||||
|
boost::shared_ptr<torrent> t2 = (*i)->associated_torrent().lock();
|
||||||
|
TORRENT_ASSERT(t2);
|
||||||
TORRENT_ASSERT((*prev)->uploaded_since_unchoke() * 1000
|
TORRENT_ASSERT((*prev)->uploaded_since_unchoke() * 1000
|
||||||
/ total_milliseconds(unchoke_interval)
|
/ total_milliseconds(unchoke_interval) * t1->priority()
|
||||||
>= (*i)->uploaded_since_unchoke() * 1000
|
>= (*i)->uploaded_since_unchoke() * 1000
|
||||||
/ total_milliseconds(unchoke_interval));
|
/ total_milliseconds(unchoke_interval) * t2->priority());
|
||||||
}
|
}
|
||||||
prev = i;
|
prev = i;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user