Set not interested when we have no pending requests
This commit is contained in:
parent
60e992ec97
commit
43a2942b98
@ -628,6 +628,9 @@ func (cn *Peer) doRequestState() bool {
|
||||
return false
|
||||
}
|
||||
cn.requestsLowWater = len(cn.requests) / 2
|
||||
if len(cn.requests) == 0 {
|
||||
return cn.setInterested(false)
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user