From 814daf6420f816442a1b6d39e152e757c84c8112 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 7 Feb 2016 01:21:12 +1100 Subject: [PATCH] Publish changes in piece hashing state --- client.go | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.48.1