From 704e7e987e151bb4567f32fdc0592d2316d13f95 Mon Sep 17 00:00:00 2001 From: Jesper Louis Andersen Date: Sun, 27 Jul 2008 22:22:15 +0200 Subject: [PATCH] Unchoking: only count guys that are really being unchoked. --- lib/etorrent-1.0/src/etorrent_choker.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/etorrent-1.0/src/etorrent_choker.erl b/lib/etorrent-1.0/src/etorrent_choker.erl index 57d843a..002ca43 100644 --- a/lib/etorrent-1.0/src/etorrent_choker.erl +++ b/lib/etorrent-1.0/src/etorrent_choker.erl @@ -382,7 +382,7 @@ rechoke_unchoke([P | Next], PSet, Count, ToChoke) -> etorrent_t_peer_recv:unchoke(P#rechoke_info.pid), rechoke_unchoke(Next, PSet, Count+1, ToChoke); false -> - rechoke_unchoke(Next, PSet, Count+1, [P | ToChoke]) + rechoke_unchoke(Next, PSet, Count, [P | ToChoke]) end. optimistics(PSet) -> -- 2.11.4.GIT