]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Changes to piece priority need to be published as a piece state change
authorMatt Joiner <anacrolix@gmail.com>
Thu, 4 Feb 2016 14:19:42 +0000 (01:19 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 4 Feb 2016 14:19:42 +0000 (01:19 +1100)
This occurs because we're now able to deprioritize pieces after readers seek or close

torrent.go

index 1d465957d1c844841461f590316a61cc1397d4fd..987b5b8fe03e1443d8f51c31f2457a777f2269ae 100644 (file)
@@ -864,6 +864,7 @@ func (t *torrent) piecePriorityChanged(piece int) {
                c.updatePiecePriority(piece)
        }
        t.maybeNewConns()
+       t.publishPieceChange(piece)
 }
 
 func (t *torrent) updatePiecePriority(piece int) bool {