No longer wanting a piece wasn't triggering an update of connection request state

Pretty minor, but it would leave connections hanging in the interested state.
This commit is contained in:
Matt Joiner 2017-08-18 01:44:20 +10:00
parent 11aabc5a85
commit 4adee001f7
1 changed files with 1 additions and 0 deletions

View File

@ -528,6 +528,7 @@ func (c *connection) requestPiecePendingChunks(piece int) (again bool) {
func (cn *connection) stopRequestingPiece(piece int) {
cn.pieceRequestOrder.Remove(piece)
cn.updateRequests()
}
// This is distinct from Torrent piece priority, which is the user's