Filter update requests on piece priority change by peer choking and allowed fast
This commit is contained in:
parent
a9485e8796
commit
ba592028e5
|
@ -1091,6 +1091,9 @@ func (t *Torrent) piecePriorityChanged(piece pieceIndex, reason string) {
|
|||
if !c.peerHasPiece(piece) {
|
||||
return
|
||||
}
|
||||
if c.peerChoking && !c.peerAllowedFast.Contains(uint32(piece)) {
|
||||
return
|
||||
}
|
||||
c.updateRequests(reason)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue