Fix unnecessary modification of Torrent.CancelPieces API
https://github.com/anacrolix/torrent/issues/681
This commit is contained in:
parent
446016cb27
commit
2c70c23ac4
2
t.go
2
t.go
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue