forked from premiere/premiere-libtorrent
fixed unchoke counter problem
This commit is contained in:
parent
aff2869bed
commit
4aa018484a
|
@ -284,8 +284,8 @@ namespace libtorrent
|
|||
{
|
||||
torrent* t = c.associated_torrent().lock().get();
|
||||
assert(t);
|
||||
t->unchoke_peer(c);
|
||||
++m_num_unchoked;
|
||||
if (t->unchoke_peer(c))
|
||||
++m_num_unchoked;
|
||||
}
|
||||
|
||||
session_status status() const;
|
||||
|
|
Loading…
Reference in New Issue