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
This commit is contained in:
Matt Joiner 2016-02-05 01:19:42 +11:00
parent 63c73e18b3
commit 6942f3e6d5
1 changed files with 1 additions and 0 deletions

View 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 {