Fix unnecessary modification of Torrent.CancelPieces API

https://github.com/anacrolix/torrent/issues/681
This commit is contained in:
Matt Joiner 2021-10-29 11:52:28 +11:00
parent 446016cb27
commit 2c70c23ac4
1 changed files with 1 additions and 1 deletions

2
t.go
View File

@ -190,7 +190,7 @@ func (t *Torrent) downloadPiecesLocked(begin, end pieceIndex) {
}
}
func (t *Torrent) CancelPieces(begin, end pieceIndex, reason string) {
func (t *Torrent) CancelPieces(begin, end pieceIndex) {
t.cl.lock()
t.cancelPiecesLocked(begin, end, "Torrent.CancelPieces")
t.cl.unlock()