]> Sergey Matveev's repositories - btrtrc.git/commit
Remove premature update to piece priority after piece is completed
authorMatt Joiner <anacrolix@gmail.com>
Sun, 28 Jan 2018 04:52:14 +0000 (15:52 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 28 Jan 2018 04:52:14 +0000 (15:52 +1100)
commitde928be5828fe66cf0f3c41e1933ecda5ae8a6f6
tree1bd45d25eb86cdde9722f20a60afa393cdccf64c
parente08d11a4b9a776af206da495d67a989bd4ae196f
Remove premature update to piece priority after piece is completed

This should have prevented Torrent.piecePriorityChanged from being called, meaning requests for the completed piece were not canceled, and the piece remained in connection's piece request queue, which meant wasted effort downloading chunks for an already acquired piece.

Thanks to @elgatito for discovering the issue.
torrent.go