Pieces being marked should have priority none
Also reorder the checks a bit to favour the cheaper ones.
This commit is contained in:
parent
637045c19a
commit
329578520a
2
piece.go
2
piece.go
|
@ -212,7 +212,7 @@ func (p *Piece) purePriority() (ret piecePriority) {
|
|||
}
|
||||
|
||||
func (p *Piece) uncachedPriority() (ret piecePriority) {
|
||||
if p.t.pieceComplete(p.index) || p.t.pieceQueuedForHash(p.index) || p.t.hashingPiece(p.index) {
|
||||
if p.hashing || p.marking || p.t.pieceComplete(p.index) || p.queuedForHash() {
|
||||
return PiecePriorityNone
|
||||
}
|
||||
return p.purePriority()
|
||||
|
|
Loading…
Reference in New Issue