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:
parent
11aabc5a85
commit
4adee001f7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue