choked fix

This commit is contained in:
Arvid Norberg 2007-08-19 08:32:39 +00:00
parent da525292fe
commit e80653152b
1 changed files with 5 additions and 10 deletions

View File

@ -1089,17 +1089,12 @@ namespace detail
{
if (p->is_choked())
{
if (t->unchoke_peer(*p))
{
--unchoke_set_size;
++m_num_unchoked;
}
}
else
{
--unchoke_set_size;
++m_num_unchoked;
if (!t->unchoke_peer(*p))
continue;
}
--unchoke_set_size;
++m_num_unchoked;
assert(p->peer_info_struct());
if (p->peer_info_struct()->optimistically_unchoked)