tInitialize peer numbers in netloop - libeech - bittorrent library
(HTM) git clone git://z3bra.org/libeech.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ddf51c1ca8e2c0f84e146cf52d019a599b5c45c2
(DIR) parent 2eea005257be3fa89a34c62e77a51956e2605867
(HTM) Author: z3bra <contactatz3bradotorg>
Date: Tue, 13 Feb 2018 22:40:45 -0500
Initialize peer numbers in netloop
Diffstat:
M libeech.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/libeech.c b/libeech.c
t@@ -373,7 +373,7 @@ netloop(struct torrent *t, int timeout)
struct peer *p;
struct peerfds pfds;
- nfds = peercnt(t->peers);
+ nfds = npeer = peercnt(t->peers);
if (nfds < 1)
return -1;