torrent.go | 3 ++- diff --git a/torrent.go b/torrent.go index 2d31bd0b3e78aba71ce5789f5c0f34c739c62e6c..58ea19a08dbcacd41f8e92bc5d004dedd1b250e7 100644 --- a/torrent.go +++ b/torrent.go @@ -1556,10 +1556,11 @@ }() } } -// Stuff we don't want to run when the pending pieces change while benchmarking. +// Stuff to do when pending pieces changes. We avoid running this in some benchmarks. func (t *Torrent) onPiecePendingTriggers(piece pieceIndex) { t.maybeNewConns() t.deferPublishPieceStateChange(piece) + t.deferUpdateRegularTrackerAnnouncing() } // Pending pieces is an old bitmap of stuff we want. I think it's more nuanced than that now with