]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Hashing was blocking prioritization of pieces
authorMatt Joiner <anacrolix@gmail.com>
Tue, 21 Jul 2015 12:51:15 +0000 (22:51 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 21 Jul 2015 12:51:15 +0000 (22:51 +1000)
client.go

index 9c33c1fff099629e1cd95ca38a1b34bbb38f28de..b8112f32affe7ffbb920d3c2e1aded86558a8013 100644 (file)
--- a/client.go
+++ b/client.go
@@ -372,9 +372,6 @@ func (cl *Client) prioritizePiece(t *torrent, piece int, priority piecePriority)
                cl.queueFirstHash(t, piece)
        }
        p := t.Pieces[piece]
-       if p.Hashing || p.QueuedForHash {
-               return
-       }
        if p.Priority != priority {
                p.Priority = priority
                cl.pieceChanged(t, piece)