projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63c73e1
)
Changes to piece priority need to be published as a piece state change
author
Matt Joiner <anacrolix@gmail.com>
Thu, 4 Feb 2016 14:19:42 +0000 (
01:19
+1100)
committer
Matt 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
patch
|
blob
|
history
diff --git
a/torrent.go
b/torrent.go
index 1d465957d1c844841461f590316a61cc1397d4fd..987b5b8fe03e1443d8f51c31f2457a777f2269ae 100644
(file)
--- 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 {