libeech

BitTorrent library
git clone git://z3bra.org/libeech.git
Log | Files | Refs | README | LICENSE

commit 49ad884d0032f329b4d6006b1541dc3ff737148f
parent 34fe31c3c7b310cd8916e5f9c018293e4b0ffab9
Author: z3bra <contactatz3bradotorg>
Date:   Mon,  9 Jul 2018 08:30:26 +0200

Unchoke all interrested peers

Diffstat:
libeech.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/libeech.c b/libeech.c @@ -822,6 +822,10 @@ pwptx(struct torrent *t, struct peer *p) /* send missing pieces as HAVE messages */ if (memcmp(t->bf, p->view, PCENUM / 8 + !!(PCENUM % 8))) catchup(t, p); + if (!(p->state & ISINTERESTED)) { + pwptxst(p, UNCHOKE); + p->state &= ~(ISCHOKING); + } } return 0;