fixed unchoke counter problem

This commit is contained in:
Arvid Norberg 2007-08-27 16:30:56 +00:00
parent aff2869bed
commit 4aa018484a
1 changed files with 2 additions and 2 deletions

View File

@ -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;