From 2c70c23ac4cb1e59fde75c3314682ba09d88f7da Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 29 Oct 2021 11:52:28 +1100 Subject: [PATCH] Fix unnecessary modification of Torrent.CancelPieces API https://github.com/anacrolix/torrent/issues/681 --- t.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t.go b/t.go index 78c500dc..a7f98892 100644 --- a/t.go +++ b/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() -- 2.44.0