mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
choked fix
This commit is contained in:
parent
4164f15735
commit
4897a9b038
1 changed files with 5 additions and 10 deletions
|
@ -1089,17 +1089,12 @@ namespace detail
|
||||||
{
|
{
|
||||||
if (p->is_choked())
|
if (p->is_choked())
|
||||||
{
|
{
|
||||||
if (t->unchoke_peer(*p))
|
if (!t->unchoke_peer(*p))
|
||||||
{
|
continue;
|
||||||
--unchoke_set_size;
|
|
||||||
++m_num_unchoked;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
--unchoke_set_size;
|
|
||||||
++m_num_unchoked;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--unchoke_set_size;
|
||||||
|
++m_num_unchoked;
|
||||||
|
|
||||||
assert(p->peer_info_struct());
|
assert(p->peer_info_struct());
|
||||||
if (p->peer_info_struct()->optimistically_unchoked)
|
if (p->peer_info_struct()->optimistically_unchoked)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue