From: Matt Joiner Date: Thu, 4 Feb 2016 14:19:42 +0000 (+1100) Subject: Changes to piece priority need to be published as a piece state change X-Git-Tag: v1.0.0~919 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6942f3e6d5e825c5312644cd077b775c71461e4a;p=btrtrc.git Changes to piece priority need to be published as a piece state change This occurs because we're now able to deprioritize pieces after readers seek or close --- diff --git a/torrent.go b/torrent.go index 1d465957..987b5b8f 100644 --- a/torrent.go +++ b/torrent.go @@ -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 {