From: Matt Joiner Date: Fri, 1 Dec 2017 03:03:05 +0000 (+1100) Subject: Publish piece state changes after verifying piece X-Git-Tag: v1.0.0~327 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=2daa604eb2a4ab8d201408557962504ef428e065;p=btrtrc.git Publish piece state changes after verifying piece --- diff --git a/torrent.go b/torrent.go index c4abf295..95e97261 100644 --- a/torrent.go +++ b/torrent.go @@ -1552,6 +1552,7 @@ func (t *Torrent) verifyPiece(piece int) { cl.mu.Lock() p.hashing = false t.pieceHashed(piece, sum == p.hash) + t.publishPieceChange(piece) } // Return the connections that touched a piece, and clear the entry while