From: Matt Joiner Date: Sat, 6 Feb 2016 14:21:12 +0000 (+1100) Subject: Publish changes in piece hashing state X-Git-Tag: v1.0.0~914 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=814daf6420f816442a1b6d39e152e757c84c8112;p=btrtrc.git Publish changes in piece hashing state --- diff --git a/client.go b/client.go index 149fc71a..7d115467 100644 --- a/client.go +++ b/client.go @@ -2517,10 +2517,12 @@ func (cl *Client) verifyPiece(t *torrent, piece int) { cl.event.Wait() } p.QueuedForHash = false + t.publishPieceChange(piece) if t.isClosed() || t.pieceComplete(piece) { return } p.Hashing = true + t.publishPieceChange(piece) cl.mu.Unlock() sum := t.hashPiece(piece) cl.mu.Lock()