peerconn.go | 2 +- diff --git a/peerconn.go b/peerconn.go index 1b585233eb8b6b982abf26659c40469cca4a36f0..cf9ace9ddd31c72dda109d60a9f1248c1eb89dd2 100644 --- a/peerconn.go +++ b/peerconn.go @@ -167,7 +167,7 @@ } } func (cn *Peer) expectingChunks() bool { - return cn.interested && !cn.peerChoking + return len(cn.requests) != 0 && !cn.peerChoking } // Returns true if the connection is over IPv6.