download_strategies.go | 3 +++ diff --git a/download_strategies.go b/download_strategies.go index 275b57e3fb510d427e219d6667f693cf189b0dfb..f3ef027b73050441f7dd151658807068527e681c 100644 --- a/download_strategies.go +++ b/download_strategies.go @@ -40,6 +40,9 @@ return } } addRequest := func(req request) (again bool) { + if len(c.Requests) >= 32 { + return false + } return c.Request(req) } for e := c.pieceRequestOrder.First(); e != nil; e = e.Next() {