fixed unchoke counter problem

This commit is contained in:
Arvid Norberg
2007-08-27 16:30:56 +00:00
parent aff2869bed
commit 4aa018484a

View File

@@ -284,7 +284,7 @@ namespace libtorrent
{ {
torrent* t = c.associated_torrent().lock().get(); torrent* t = c.associated_torrent().lock().get();
assert(t); assert(t);
t->unchoke_peer(c); if (t->unchoke_peer(c))
++m_num_unchoked; ++m_num_unchoked;
} }